* $Id: //depot/aic7xxx/aic7xxx/aic79xx_pci.c#88 $
*
* $FreeBSD: src/sys/dev/aic7xxx/aic79xx_pci.c,v 1.24 2005/12/04 02:12:40 ru Exp $
- * $DragonFly: src/sys/dev/disk/aic7xxx/aic79xx_pci.c,v 1.16 2008/02/09 18:13:13 pavalos Exp $
*/
#ifdef __linux__
int
ahd_pci_config(struct ahd_softc *ahd, struct ahd_pci_identity *entry)
{
- struct scb_data *shared_scb_data;
u_int command;
uint32_t devconfig;
uint16_t device;
uint16_t subvendor;
int error;
- shared_scb_data = NULL;
ahd->description = entry->name;
/*
* Record if this is a HostRAID board.
u32 iir, new_iir;
u32 pipea_stats, pipeb_stats;
u32 vblank_status;
- u32 vblank_enable;
int irq_received;
iir = I915_READ(IIR);
- if (IS_I965G(dev)) {
+ if (IS_I965G(dev))
vblank_status = PIPE_START_VBLANK_INTERRUPT_STATUS;
- vblank_enable = PIPE_START_VBLANK_INTERRUPT_ENABLE;
- } else {
+ else
vblank_status = I915_VBLANK_INTERRUPT_STATUS;
- vblank_enable = I915_VBLANK_INTERRUPT_ENABLE;
- }
for (;;) {
irq_received = iir != 0;
case IEEE80211_FC0_SUBTYPE_PROBE_REQ:
{
uint8_t *ssid, *meshid, *rates, *xrates;
- uint8_t *sfrm;
if (vap->iv_state != IEEE80211_S_RUN) {
IEEE80211_DISCARD(vap, IEEE80211_MSG_INPUT,
* [tlv] mesh id
*/
ssid = meshid = rates = xrates = NULL;
- sfrm = frm;
while (efrm - frm > 1) {
IEEE80211_VERIFY_LENGTH(efrm - frm, frm[1] + 2, return);
switch (*frm) {
{
struct ieee80211vap *vap = ni->ni_vap;
uint8_t *challenge;
- int estatus;
/*
* NB: this can happen as we allow pre-shared key
IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_AUTH,
ni->ni_macaddr, "shared key auth",
"%s", " PRIVACY is disabled");
- estatus = IEEE80211_STATUS_ALG;
goto bad;
}
/*
ni->ni_macaddr, "shared key auth",
"bad sta auth mode %u", ni->ni_authmode);
vap->iv_stats.is_rx_bad_auth++; /* XXX maybe a unique error? */
- estatus = IEEE80211_STATUS_ALG;
goto bad;
}
"ie %d/%d too long",
frm[0], (int)((frm[1] + 2) - (efrm - frm)));
vap->iv_stats.is_rx_bad_auth++;
- estatus = IEEE80211_STATUS_CHALLENGE;
goto bad;
}
if (*frm == IEEE80211_ELEMID_CHALLENGE)
ni->ni_macaddr, "shared key auth",
"%s", "no challenge");
vap->iv_stats.is_rx_bad_auth++;
- estatus = IEEE80211_STATUS_CHALLENGE;
goto bad;
}
if (challenge[1] != IEEE80211_CHALLENGE_LEN) {
ni->ni_macaddr, "shared key auth",
"bad challenge len %d", challenge[1]);
vap->iv_stats.is_rx_bad_auth++;
- estatus = IEEE80211_STATUS_CHALLENGE;
goto bad;
}
default:
{
vm_offset_t va;
pt_entry_t *pte;
- struct mdglobaldata *gd;
- int pg;
KvaStart = VM_MIN_KERNEL_ADDRESS;
KvaEnd = VM_MAX_KERNEL_ADDRESS;
#endif
}
#endif
-
- /*
- * We need to finish setting up the globaldata page for the BSP.
- * locore has already populated the page table for the mdglobaldata
- * portion.
- */
- pg = MDGLOBALDATA_BASEALLOC_PAGES;
- gd = &CPU_prvspace[0].mdglobaldata;
-
cpu_invltlb();
}