13 |
* (wvlan_hcf.c) library, and the NetBSD wireless driver (in no |
* (wvlan_hcf.c) library, and the NetBSD wireless driver (in no |
14 |
* particular order). |
* particular order). |
15 |
* |
* |
16 |
* Copyright (C) 2000, David Gibson, Linuxcare Australia <hermes@gibson.dropbear.id.au> |
* Copyright (C) 2000, David Gibson, Linuxcare Australia. |
17 |
* (C) Copyright David Gibson, IBM Corp. 2001-2003. |
* (C) Copyright David Gibson, IBM Corp. 2001-2003. |
18 |
* |
* |
19 |
* The contents of this file are subject to the Mozilla Public License |
* The contents of this file are subject to the Mozilla Public License |
395 |
if (reg & HERMES_OFFSET_BUSY) |
if (reg & HERMES_OFFSET_BUSY) |
396 |
return -ETIMEDOUT; |
return -ETIMEDOUT; |
397 |
|
|
398 |
|
if (reg != offset) { |
399 |
|
printk(KERN_ERR "hermes @ %s0x%lx: " |
400 |
|
"BAP offset error: reg=0x%x offset=0x%x\n", |
401 |
|
IO_TYPE(hw), hw->iobase, reg, offset); |
402 |
|
} |
403 |
|
|
404 |
/* Now we actually set up the transfer */ |
/* Now we actually set up the transfer */ |
405 |
hermes_write_reg(hw, sreg, id); |
hermes_write_reg(hw, sreg, id); |
406 |
hermes_write_reg(hw, oreg, offset); |
hermes_write_reg(hw, oreg, offset); |