diff options
author | phk <phk@FreeBSD.org> | 2005-01-04 22:25:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-01-04 22:25:58 +0000 |
commit | 718589faa8e89df4f7cfa83c1d530a72a13cddcc (patch) | |
tree | 453f580e332a72ebde29e4bfa803b8ed6e0b338f /sys/pci/if_sisreg.h | |
parent | f39fbeb0dc9c995191e9392b113c73a7181f8642 (diff) | |
download | FreeBSD-src-718589faa8e89df4f7cfa83c1d530a72a13cddcc.zip FreeBSD-src-718589faa8e89df4f7cfa83c1d530a72a13cddcc.tar.gz |
Forget about the sis_list_data and sis_ring_data structures and embedd
their fields directly in the softc structure.
This is a no-op which shortens most of the affected source lines
by N * 10 characters.
Diffstat (limited to 'sys/pci/if_sisreg.h')
-rw-r--r-- | sys/pci/if_sisreg.h | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/sys/pci/if_sisreg.h b/sys/pci/if_sisreg.h index aebc2af..58634e0 100644 --- a/sys/pci/if_sisreg.h +++ b/sys/pci/if_sisreg.h @@ -367,29 +367,6 @@ struct sis_desc { #define SIS_RX_LIST_SZ SIS_RX_LIST_CNT * sizeof(struct sis_desc) #define SIS_TX_LIST_SZ SIS_TX_LIST_CNT * sizeof(struct sis_desc) -struct sis_list_data { -#ifdef foo - struct sis_desc sis_rx_list[SIS_RX_LIST_CNT]; - struct sis_desc sis_tx_list[SIS_TX_LIST_CNT]; -#endif - struct sis_desc *sis_rx_list; - struct sis_desc *sis_tx_list; - bus_dma_tag_t sis_rx_tag; - bus_dmamap_t sis_rx_dmamap; - bus_dma_tag_t sis_tx_tag; - bus_dmamap_t sis_tx_dmamap; -}; - -struct sis_ring_data { - int sis_rx_prod; - int sis_tx_prod; - int sis_tx_cons; - int sis_tx_cnt; - u_int32_t sis_rx_paddr; - u_int32_t sis_tx_paddr; -}; - - /* * SiS PCI vendor ID. */ @@ -465,10 +442,20 @@ struct sis_softc { u_int8_t sis_rev; u_int8_t sis_link; u_int sis_srr; - struct sis_list_data sis_ldata; + struct sis_desc *sis_rx_list; + struct sis_desc *sis_tx_list; + bus_dma_tag_t sis_rx_tag; + bus_dmamap_t sis_rx_dmamap; + bus_dma_tag_t sis_tx_tag; + bus_dmamap_t sis_tx_dmamap; bus_dma_tag_t sis_parent_tag; bus_dma_tag_t sis_tag; - struct sis_ring_data sis_cdata; + int sis_rx_prod; + int sis_tx_prod; + int sis_tx_cons; + int sis_tx_cnt; + u_int32_t sis_rx_paddr; + u_int32_t sis_tx_paddr; struct callout sis_stat_ch; int sis_stopped; #ifdef DEVICE_POLLING |