diff options
author | glebius <glebius@FreeBSD.org> | 2006-06-08 09:35:02 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2006-06-08 09:35:02 +0000 |
commit | 09176c9eac4e97bcb6c1dac5b706e8f3b0fc859e (patch) | |
tree | 194175453e17ffafe63a6ca3af3db4bbc85341c6 /sys/dev | |
parent | fd2485a7f098dc66870f4dd5ad0cbcab226edaf4 (diff) | |
download | FreeBSD-src-09176c9eac4e97bcb6c1dac5b706e8f3b0fc859e.zip FreeBSD-src-09176c9eac4e97bcb6c1dac5b706e8f3b0fc859e.tar.gz |
u_intXX -> uintXX
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/bge/if_bgereg.h | 278 |
1 files changed, 139 insertions, 139 deletions
diff --git a/sys/dev/bge/if_bgereg.h b/sys/dev/bge/if_bgereg.h index ac7870f..341dbd2 100644 --- a/sys/dev/bge/if_bgereg.h +++ b/sys/dev/bge/if_bgereg.h @@ -1752,26 +1752,26 @@ #define BGE_MAGIC_NUMBER 0x4B657654 typedef struct { - u_int32_t bge_addr_hi; - u_int32_t bge_addr_lo; + uint32_t bge_addr_hi; + uint32_t bge_addr_lo; } bge_hostaddr; #define BGE_HOSTADDR(x, y) \ do { \ - (x).bge_addr_lo = ((u_int64_t) (y) & 0xffffffff); \ - (x).bge_addr_hi = ((u_int64_t) (y) >> 32); \ + (x).bge_addr_lo = ((uint64_t) (y) & 0xffffffff); \ + (x).bge_addr_hi = ((uint64_t) (y) >> 32); \ } while(0) #define BGE_ADDR_LO(y) \ - ((u_int64_t) (y) & 0xFFFFFFFF) + ((uint64_t) (y) & 0xFFFFFFFF) #define BGE_ADDR_HI(y) \ - ((u_int64_t) (y) >> 32) + ((uint64_t) (y) >> 32) /* Ring control block structure */ struct bge_rcb { bge_hostaddr bge_hostaddr; - u_int32_t bge_maxlen_flags; - u_int32_t bge_nicaddr; + uint32_t bge_maxlen_flags; + uint32_t bge_nicaddr; }; #define RCB_WRITE_4(sc, rcb, offset, val) \ @@ -1785,15 +1785,15 @@ struct bge_rcb { struct bge_tx_bd { bge_hostaddr bge_addr; #if BYTE_ORDER == LITTLE_ENDIAN - u_int16_t bge_flags; - u_int16_t bge_len; - u_int16_t bge_vlan_tag; - u_int16_t bge_rsvd; + uint16_t bge_flags; + uint16_t bge_len; + uint16_t bge_vlan_tag; + uint16_t bge_rsvd; #else - u_int16_t bge_len; - u_int16_t bge_flags; - u_int16_t bge_rsvd; - u_int16_t bge_vlan_tag; + uint16_t bge_len; + uint16_t bge_flags; + uint16_t bge_rsvd; + uint16_t bge_vlan_tag; #endif }; @@ -1817,26 +1817,26 @@ struct bge_tx_bd { struct bge_rx_bd { bge_hostaddr bge_addr; #if BYTE_ORDER == LITTLE_ENDIAN - u_int16_t bge_len; - u_int16_t bge_idx; - u_int16_t bge_flags; - u_int16_t bge_type; - u_int16_t bge_tcp_udp_csum; - u_int16_t bge_ip_csum; - u_int16_t bge_vlan_tag; - u_int16_t bge_error_flag; + uint16_t bge_len; + uint16_t bge_idx; + uint16_t bge_flags; + uint16_t bge_type; + uint16_t bge_tcp_udp_csum; + uint16_t bge_ip_csum; + uint16_t bge_vlan_tag; + uint16_t bge_error_flag; #else - u_int16_t bge_idx; - u_int16_t bge_len; - u_int16_t bge_type; - u_int16_t bge_flags; - u_int16_t bge_ip_csum; - u_int16_t bge_tcp_udp_csum; - u_int16_t bge_error_flag; - u_int16_t bge_vlan_tag; + uint16_t bge_idx; + uint16_t bge_len; + uint16_t bge_type; + uint16_t bge_flags; + uint16_t bge_ip_csum; + uint16_t bge_tcp_udp_csum; + uint16_t bge_error_flag; + uint16_t bge_vlan_tag; #endif - u_int32_t bge_rsvd; - u_int32_t bge_opaque; + uint32_t bge_rsvd; + uint32_t bge_opaque; }; struct bge_extrx_bd { @@ -1844,38 +1844,38 @@ struct bge_extrx_bd { bge_hostaddr bge_addr2; bge_hostaddr bge_addr3; #if BYTE_ORDER == LITTLE_ENDIAN - u_int16_t bge_len2; - u_int16_t bge_len1; - u_int16_t bge_rsvd1; - u_int16_t bge_len3; + uint16_t bge_len2; + uint16_t bge_len1; + uint16_t bge_rsvd1; + uint16_t bge_len3; #else - u_int16_t bge_len1; - u_int16_t bge_len2; - u_int16_t bge_len3; - u_int16_t bge_rsvd1; + uint16_t bge_len1; + uint16_t bge_len2; + uint16_t bge_len3; + uint16_t bge_rsvd1; #endif bge_hostaddr bge_addr0; #if BYTE_ORDER == LITTLE_ENDIAN - u_int16_t bge_len0; - u_int16_t bge_idx; - u_int16_t bge_flags; - u_int16_t bge_type; - u_int16_t bge_tcp_udp_csum; - u_int16_t bge_ip_csum; - u_int16_t bge_vlan_tag; - u_int16_t bge_error_flag; + uint16_t bge_len0; + uint16_t bge_idx; + uint16_t bge_flags; + uint16_t bge_type; + uint16_t bge_tcp_udp_csum; + uint16_t bge_ip_csum; + uint16_t bge_vlan_tag; + uint16_t bge_error_flag; #else - u_int16_t bge_idx; - u_int16_t bge_len0; - u_int16_t bge_type; - u_int16_t bge_flags; - u_int16_t bge_ip_csum; - u_int16_t bge_tcp_udp_csum; - u_int16_t bge_error_flag; - u_int16_t bge_vlan_tag; + uint16_t bge_idx; + uint16_t bge_len0; + uint16_t bge_type; + uint16_t bge_flags; + uint16_t bge_ip_csum; + uint16_t bge_tcp_udp_csum; + uint16_t bge_error_flag; + uint16_t bge_vlan_tag; #endif - u_int32_t bge_rsvd0; - u_int32_t bge_opaque; + uint32_t bge_rsvd0; + uint32_t bge_opaque; }; #define BGE_RXBDFLAG_END 0x0004 @@ -1898,27 +1898,27 @@ struct bge_extrx_bd { struct bge_sts_idx { #if BYTE_ORDER == LITTLE_ENDIAN - u_int16_t bge_rx_prod_idx; - u_int16_t bge_tx_cons_idx; + uint16_t bge_rx_prod_idx; + uint16_t bge_tx_cons_idx; #else - u_int16_t bge_tx_cons_idx; - u_int16_t bge_rx_prod_idx; + uint16_t bge_tx_cons_idx; + uint16_t bge_rx_prod_idx; #endif }; struct bge_status_block { - u_int32_t bge_status; - u_int32_t bge_rsvd0; + uint32_t bge_status; + uint32_t bge_rsvd0; #if BYTE_ORDER == LITTLE_ENDIAN - u_int16_t bge_rx_jumbo_cons_idx; - u_int16_t bge_rx_std_cons_idx; - u_int16_t bge_rx_mini_cons_idx; - u_int16_t bge_rsvd1; + uint16_t bge_rx_jumbo_cons_idx; + uint16_t bge_rx_std_cons_idx; + uint16_t bge_rx_mini_cons_idx; + uint16_t bge_rsvd1; #else - u_int16_t bge_rx_std_cons_idx; - u_int16_t bge_rx_jumbo_cons_idx; - u_int16_t bge_rsvd1; - u_int16_t bge_rx_mini_cons_idx; + uint16_t bge_rx_std_cons_idx; + uint16_t bge_rx_jumbo_cons_idx; + uint16_t bge_rsvd1; + uint16_t bge_rx_mini_cons_idx; #endif struct bge_sts_idx bge_idx[16]; }; @@ -2129,43 +2129,43 @@ struct bge_tx_mac_stats { /* Stats counters access through registers */ struct bge_mac_stats_regs { - u_int32_t ifHCOutOctets; - u_int32_t Reserved0; - u_int32_t etherStatsCollisions; - u_int32_t outXonSent; - u_int32_t outXoffSent; - u_int32_t Reserved1; - u_int32_t dot3StatsInternalMacTransmitErrors; - u_int32_t dot3StatsSingleCollisionFrames; - u_int32_t dot3StatsMultipleCollisionFrames; - u_int32_t dot3StatsDeferredTransmissions; - u_int32_t Reserved2; - u_int32_t dot3StatsExcessiveCollisions; - u_int32_t dot3StatsLateCollisions; - u_int32_t Reserved3[14]; - u_int32_t ifHCOutUcastPkts; - u_int32_t ifHCOutMulticastPkts; - u_int32_t ifHCOutBroadcastPkts; - u_int32_t Reserved4[2]; - u_int32_t ifHCInOctets; - u_int32_t Reserved5; - u_int32_t etherStatsFragments; - u_int32_t ifHCInUcastPkts; - u_int32_t ifHCInMulticastPkts; - u_int32_t ifHCInBroadcastPkts; - u_int32_t dot3StatsFCSErrors; - u_int32_t dot3StatsAlignmentErrors; - u_int32_t xonPauseFramesReceived; - u_int32_t xoffPauseFramesReceived; - u_int32_t macControlFramesReceived; - u_int32_t xoffStateEntered; - u_int32_t dot3StatsFramesTooLong; - u_int32_t etherStatsJabbers; - u_int32_t etherStatsUndersizePkts; + uint32_t ifHCOutOctets; + uint32_t Reserved0; + uint32_t etherStatsCollisions; + uint32_t outXonSent; + uint32_t outXoffSent; + uint32_t Reserved1; + uint32_t dot3StatsInternalMacTransmitErrors; + uint32_t dot3StatsSingleCollisionFrames; + uint32_t dot3StatsMultipleCollisionFrames; + uint32_t dot3StatsDeferredTransmissions; + uint32_t Reserved2; + uint32_t dot3StatsExcessiveCollisions; + uint32_t dot3StatsLateCollisions; + uint32_t Reserved3[14]; + uint32_t ifHCOutUcastPkts; + uint32_t ifHCOutMulticastPkts; + uint32_t ifHCOutBroadcastPkts; + uint32_t Reserved4[2]; + uint32_t ifHCInOctets; + uint32_t Reserved5; + uint32_t etherStatsFragments; + uint32_t ifHCInUcastPkts; + uint32_t ifHCInMulticastPkts; + uint32_t ifHCInBroadcastPkts; + uint32_t dot3StatsFCSErrors; + uint32_t dot3StatsAlignmentErrors; + uint32_t xonPauseFramesReceived; + uint32_t xoffPauseFramesReceived; + uint32_t macControlFramesReceived; + uint32_t xoffStateEntered; + uint32_t dot3StatsFramesTooLong; + uint32_t etherStatsJabbers; + uint32_t etherStatsUndersizePkts; }; struct bge_stats { - u_int8_t Reserved0[256]; + uint8_t Reserved0[256]; /* Statistics maintained by Receive MAC. */ struct bge_rx_mac_stats rxstats; @@ -2202,7 +2202,7 @@ struct bge_stats { bge_hostaddr nicAvoidedInterrupts; bge_hostaddr nicSendThresholdHit; - u_int8_t Reserved4[320]; + uint8_t Reserved4[320]; }; /* @@ -2238,14 +2238,14 @@ struct bge_gib { /* VPD structures */ struct vpd_res { - u_int8_t vr_id; - u_int8_t vr_len; - u_int8_t vr_pad; + uint8_t vr_id; + uint8_t vr_len; + uint8_t vr_pad; }; struct vpd_key { char vk_key[2]; - u_int8_t vk_len; + uint8_t vk_len; }; #define VPD_RES_ID 0x82 /* ID string */ @@ -2286,8 +2286,8 @@ struct vpd_key { #define BGE_JSLOTS 384 #define BGE_JRAWLEN (BGE_JUMBO_FRAMELEN + ETHER_ALIGN) -#define BGE_JLEN (BGE_JRAWLEN + (sizeof(u_int64_t) - \ - (BGE_JRAWLEN % sizeof(u_int64_t)))) +#define BGE_JLEN (BGE_JRAWLEN + (sizeof(uint64_t) - \ + (BGE_JRAWLEN % sizeof(uint64_t)))) #define BGE_JPAGESZ PAGE_SIZE #define BGE_RESID (BGE_JPAGESZ - (BGE_JLEN * BGE_JSLOTS) % BGE_JPAGESZ) #define BGE_JMEM ((BGE_JLEN * BGE_JSLOTS) + BGE_RESID) @@ -2363,15 +2363,15 @@ struct bge_chain_data { struct bge_dmamap_arg { struct bge_softc *sc; bus_addr_t bge_busaddr; - u_int16_t bge_flags; + uint16_t bge_flags; int bge_idx; int bge_maxsegs; struct bge_tx_bd *bge_ring; }; struct bge_type { - u_int16_t bge_vid; - u_int16_t bge_did; + uint16_t bge_vid; + uint16_t bge_did; char *bge_name; }; @@ -2396,29 +2396,29 @@ struct bge_softc { struct resource *bge_irq; struct resource *bge_res; struct ifmedia bge_ifmedia; /* TBI media info */ - u_int8_t bge_extram; /* has external SSRAM */ - u_int8_t bge_tbi; - u_int8_t bge_rx_alignment_bug; - u_int32_t bge_chipid; - u_int8_t bge_asicrev; - u_int8_t bge_chiprev; - u_int8_t bge_no_3_led; - u_int8_t bge_pcie; + uint8_t bge_extram; /* has external SSRAM */ + uint8_t bge_tbi; + uint8_t bge_rx_alignment_bug; + uint32_t bge_chipid; + uint8_t bge_asicrev; + uint8_t bge_chiprev; + uint8_t bge_no_3_led; + uint8_t bge_pcie; struct bge_ring_data bge_ldata; /* rings */ struct bge_chain_data bge_cdata; /* mbufs */ - u_int16_t bge_tx_saved_considx; - u_int16_t bge_rx_saved_considx; - u_int16_t bge_ev_saved_considx; - u_int16_t bge_return_ring_cnt; - u_int16_t bge_std; /* current std ring head */ - u_int16_t bge_jumbo; /* current jumo ring head */ - u_int32_t bge_stat_ticks; - u_int32_t bge_rx_coal_ticks; - u_int32_t bge_tx_coal_ticks; - u_int32_t bge_tx_prodidx; - u_int32_t bge_rx_max_coal_bds; - u_int32_t bge_tx_max_coal_bds; - u_int32_t bge_tx_buf_ratio; + uint16_t bge_tx_saved_considx; + uint16_t bge_rx_saved_considx; + uint16_t bge_ev_saved_considx; + uint16_t bge_return_ring_cnt; + uint16_t bge_std; /* current std ring head */ + uint16_t bge_jumbo; /* current jumo ring head */ + uint32_t bge_stat_ticks; + uint32_t bge_rx_coal_ticks; + uint32_t bge_tx_coal_ticks; + uint32_t bge_tx_prodidx; + uint32_t bge_rx_max_coal_bds; + uint32_t bge_tx_max_coal_bds; + uint32_t bge_tx_buf_ratio; int bge_if_flags; int bge_txcnt; int bge_link; /* link state */ |