summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_vrreg.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2007-04-22 15:48:29 +0000
committerphk <phk@FreeBSD.org>2007-04-22 15:48:29 +0000
commitac1868addb3367dd5b98fd516f929701e045ff48 (patch)
tree3dfbed7bffb60d3d1dfd985b54c4328b81a6b943 /sys/pci/if_vrreg.h
parentd1196975a07260e588b5270931563e7fe7d7e672 (diff)
downloadFreeBSD-src-ac1868addb3367dd5b98fd516f929701e045ff48.zip
FreeBSD-src-ac1868addb3367dd5b98fd516f929701e045ff48.tar.gz
Remove further cobwebs: Two layers of pointless substructures.
Diffstat (limited to 'sys/pci/if_vrreg.h')
-rw-r--r--sys/pci/if_vrreg.h37
1 files changed, 4 insertions, 33 deletions
diff --git a/sys/pci/if_vrreg.h b/sys/pci/if_vrreg.h
index 944b5cb..b3b01f0 100644
--- a/sys/pci/if_vrreg.h
+++ b/sys/pci/if_vrreg.h
@@ -332,6 +332,10 @@ struct vr_desc {
u_int32_t vr_ctl;
u_int32_t vr_data;
u_int32_t vr_nextphys;
+ struct mbuf *vr_mbuf;
+ struct vr_desc *vr_next;
+ u_int32_t *vxr1;
+ u_int32_t *vxr2;
};
@@ -399,39 +403,6 @@ struct vr_desc {
#define VR_FRAMELEN 1536
#define VR_RXLEN 1520
-#define VR_TXOWN(x) x->vr_ptr->vr_status
-
-struct vr_list_data {
- struct vr_desc vr_rx_list[VR_RX_LIST_CNT];
- struct vr_desc vr_tx_list[VR_TX_LIST_CNT];
-};
-
-struct vr_chain {
- struct vr_desc *vr_ptr;
- struct mbuf *vr_mbuf;
- struct vr_chain *vr_nextdesc;
-};
-
-struct vr_chain_data {
- struct vr_chain vr_rx_chain[VR_RX_LIST_CNT];
- struct vr_chain vr_tx_chain[VR_TX_LIST_CNT];
-
- struct vr_chain *vr_rx_head;
-
- struct vr_chain *vr_tx_cons;
- struct vr_chain *vr_tx_prod;
-};
-
-#define VR_Q_NEEDALIGN (1<<0)
-#define VR_Q_CSUM (1<<1)
-
-struct vr_type {
- u_int16_t vr_vid;
- u_int16_t vr_did;
- int vr_quirks;
- char *vr_name;
-};
-
struct vr_mii_frame {
u_int8_t mii_stdelim;
u_int8_t mii_opcode;
OpenPOWER on IntegriCloud