|
|
| version 1.13, 2004/05/11 14:00:20 | version 1.14, 2004/05/11 22:55:15 |
|---|---|
| Line 1559 em_allocate_pci_resources(struct adapter | Line 1559 em_allocate_pci_resources(struct adapter |
| return(ENXIO); | return(ENXIO); |
| } | } |
| adapter->hw.io_base = | adapter->hw.reg_io_tag = rman_get_bustag(adapter->res_ioport); |
| rman_get_start(adapter->res_ioport); | adapter->hw.reg_io_handle = rman_get_bushandle(adapter->res_ioport); |
| } | } |
| rid = 0x0; | rid = 0x0; |
| Line 2719 em_pci_clear_mwi(struct em_hw *hw) | Line 2719 em_pci_clear_mwi(struct em_hw *hw) |
| (hw->pci_cmd_word & ~CMD_MEM_WRT_INVALIDATE), 2); | (hw->pci_cmd_word & ~CMD_MEM_WRT_INVALIDATE), 2); |
| } | } |
| uint32_t | |
| em_read_reg_io(struct em_hw *hw, uint32_t offset) | |
| { | |
| bus_space_write_4(hw->reg_io_tag, hw->reg_io_handle, 0, offset); | |
| return(bus_space_read_4(hw->reg_io_tag, hw->reg_io_handle, 4)); | |
| } | |
| void | |
| em_write_reg_io(struct em_hw *hw, uint32_t offset, uint32_t value) | |
| { | |
| bus_space_write_4(hw->reg_io_tag, hw->reg_io_handle, 0, offset); | |
| bus_space_write_4(hw->reg_io_tag, hw->reg_io_handle, 4, value); | |
| } | |
| /********************************************************************* | /********************************************************************* |
| * 82544 Coexistence issue workaround. | * 82544 Coexistence issue workaround. |
| * There are 2 issues. | * There are 2 issues. |