diff options
author | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-03-16 13:50:00 +0000 |
---|---|---|
committer | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-03-16 13:50:00 +0000 |
commit | 2cea1e6b9aa20af4040e87e88f9d4d2017cc2233 (patch) | |
tree | 5cd5a5f93b8b203d2343d5ade6e35ebd6b99f55d /openwrt/package/linux/kernel-source/include/bcmenetmib.h | |
parent | cfb6561e9bd4c5db6a6323525f0b5383e0649c5f (diff) |
add all source code from linksys/broadcom which is free, to cvs for better maintainence inside
openwrt. this gives us the ability to better support different hardware models, without changing
any external tar-balls. only et.o and wl.o is missing and is fetched from my webserver.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@379 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/linux/kernel-source/include/bcmenetmib.h')
-rw-r--r-- | openwrt/package/linux/kernel-source/include/bcmenetmib.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/openwrt/package/linux/kernel-source/include/bcmenetmib.h b/openwrt/package/linux/kernel-source/include/bcmenetmib.h new file mode 100644 index 0000000000..260d071ba8 --- /dev/null +++ b/openwrt/package/linux/kernel-source/include/bcmenetmib.h @@ -0,0 +1,81 @@ +/* + * Hardware-specific MIB definition for + * Broadcom Home Networking Division + * BCM44XX and BCM47XX 10/100 Mbps Ethernet cores. + * + * Copyright 2004, Broadcom Corporation + * All Rights Reserved. + * + * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY + * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM + * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE. + * $Id$ + */ + +#ifndef _bcmenetmib_h_ +#define _bcmenetmib_h_ + +/* cpp contortions to concatenate w/arg prescan */ +#ifndef PAD +#define _PADLINE(line) pad ## line +#define _XSTR(line) _PADLINE(line) +#define PAD _XSTR(__LINE__) +#endif /* PAD */ + +/* + * EMAC MIB Registers + */ +typedef volatile struct { + uint32 tx_good_octets; + uint32 tx_good_pkts; + uint32 tx_octets; + uint32 tx_pkts; + uint32 tx_broadcast_pkts; + uint32 tx_multicast_pkts; + uint32 tx_len_64; + uint32 tx_len_65_to_127; + uint32 tx_len_128_to_255; + uint32 tx_len_256_to_511; + uint32 tx_len_512_to_1023; + uint32 tx_len_1024_to_max; + uint32 tx_jabber_pkts; + uint32 tx_oversize_pkts; + uint32 tx_fragment_pkts; + uint32 tx_underruns; + uint32 tx_total_cols; + uint32 tx_single_cols; + uint32 tx_multiple_cols; + uint32 tx_excessive_cols; + uint32 tx_late_cols; + uint32 tx_defered; + uint32 tx_carrier_lost; + uint32 tx_pause_pkts; + uint32 PAD[8]; + + uint32 rx_good_octets; + uint32 rx_good_pkts; + uint32 rx_octets; + uint32 rx_pkts; + uint32 rx_broadcast_pkts; + uint32 rx_multicast_pkts; + uint32 rx_len_64; + uint32 rx_len_65_to_127; + uint32 rx_len_128_to_255; + uint32 rx_len_256_to_511; + uint32 rx_len_512_to_1023; + uint32 rx_len_1024_to_max; + uint32 rx_jabber_pkts; + uint32 rx_oversize_pkts; + uint32 rx_fragment_pkts; + uint32 rx_missed_pkts; + uint32 rx_crc_align_errs; + uint32 rx_undersize; + uint32 rx_crc_errs; + uint32 rx_align_errs; + uint32 rx_symbol_errs; + uint32 rx_pause_pkts; + uint32 rx_nonpause_pkts; +} bcmenetmib_t; + +#endif /* _bcmenetmib_h_ */ |