summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_xlreg.h
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2003-01-19 00:23:59 +0000
committertmm <tmm@FreeBSD.org>2003-01-19 00:23:59 +0000
commitd52835b4ab057c3bfdf416502c82c4c0f7a22546 (patch)
treeff74f88b22b18ba7dfa8bdc3eee9d0814ba5c5c7 /sys/pci/if_xlreg.h
parent0c8d64a2c4ed9577970bc064bd9354ec7fa78297 (diff)
downloadFreeBSD-src-d52835b4ab057c3bfdf416502c82c4c0f7a22546.zip
FreeBSD-src-d52835b4ab057c3bfdf416502c82c4c0f7a22546.tar.gz
Make the xl driver work on sparc64:
- Add conversions to/from little endian for fields that the NIC accesses by DMA as required. - Add some bus_dmamap_sync() calls, and correct some existing ones. - Read the receiver information from the EEPROM in an endian-neutral manner. - Load all RX and TX descriptors in a single DMA map up front, and get the bus addresses of individual descriptors by address arithmetic; this fixes multiple use of the descriptor tags, which would have undesired effects. It seems that xl still does not work on e250 boxen, for reasons which are not clear yet. Reviewed by: mux
Diffstat (limited to 'sys/pci/if_xlreg.h')
-rw-r--r--sys/pci/if_xlreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/if_xlreg.h b/sys/pci/if_xlreg.h
index 4f08afb..a035dc6 100644
--- a/sys/pci/if_xlreg.h
+++ b/sys/pci/if_xlreg.h
@@ -458,6 +458,7 @@ struct xl_list_data {
u_int32_t xl_rx_dmaaddr;
bus_dma_tag_t xl_rx_tag;
bus_dmamap_t xl_rx_dmamap;
+ u_int32_t xl_tx_dmaaddr;
bus_dma_tag_t xl_tx_tag;
bus_dmamap_t xl_tx_dmamap;
};
OpenPOWER on IntegriCloud