s/u_intXX_t/uintXX_t/g
This commit is contained in:
parent
280101b76e
commit
56af54f28f
@ -117,7 +117,7 @@ static void ste_ifmedia_upd_locked(struct ifnet *);
|
|||||||
static void ste_ifmedia_sts(struct ifnet *, struct ifmediareq *);
|
static void ste_ifmedia_sts(struct ifnet *, struct ifmediareq *);
|
||||||
|
|
||||||
static void ste_mii_sync(struct ste_softc *);
|
static void ste_mii_sync(struct ste_softc *);
|
||||||
static void ste_mii_send(struct ste_softc *, u_int32_t, int);
|
static void ste_mii_send(struct ste_softc *, uint32_t, int);
|
||||||
static int ste_mii_readreg(struct ste_softc *, struct ste_mii_frame *);
|
static int ste_mii_readreg(struct ste_softc *, struct ste_mii_frame *);
|
||||||
static int ste_mii_writereg(struct ste_softc *, struct ste_mii_frame *);
|
static int ste_mii_writereg(struct ste_softc *, struct ste_mii_frame *);
|
||||||
static int ste_miibus_readreg(device_t, int, int);
|
static int ste_miibus_readreg(device_t, int, int);
|
||||||
@ -218,7 +218,7 @@ ste_mii_sync(struct ste_softc *sc)
|
|||||||
* Clock a series of bits through the MII.
|
* Clock a series of bits through the MII.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
ste_mii_send(struct ste_softc *sc, u_int32_t bits, int cnt)
|
ste_mii_send(struct ste_softc *sc, uint32_t bits, int cnt)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -516,7 +516,7 @@ static int
|
|||||||
ste_read_eeprom(struct ste_softc *sc, caddr_t dest, int off, int cnt, int swap)
|
ste_read_eeprom(struct ste_softc *sc, caddr_t dest, int off, int cnt, int swap)
|
||||||
{
|
{
|
||||||
int err = 0, i;
|
int err = 0, i;
|
||||||
u_int16_t word = 0, *ptr;
|
uint16_t word = 0, *ptr;
|
||||||
|
|
||||||
if (ste_eeprom_wait(sc))
|
if (ste_eeprom_wait(sc))
|
||||||
return(1);
|
return(1);
|
||||||
@ -527,7 +527,7 @@ ste_read_eeprom(struct ste_softc *sc, caddr_t dest, int off, int cnt, int swap)
|
|||||||
if (err)
|
if (err)
|
||||||
break;
|
break;
|
||||||
word = CSR_READ_2(sc, STE_EEPROM_DATA);
|
word = CSR_READ_2(sc, STE_EEPROM_DATA);
|
||||||
ptr = (u_int16_t *)(dest + (i * 2));
|
ptr = (uint16_t *)(dest + (i * 2));
|
||||||
if (swap)
|
if (swap)
|
||||||
*ptr = ntohs(word);
|
*ptr = ntohs(word);
|
||||||
else
|
else
|
||||||
@ -542,7 +542,7 @@ ste_setmulti(struct ste_softc *sc)
|
|||||||
{
|
{
|
||||||
struct ifnet *ifp;
|
struct ifnet *ifp;
|
||||||
int h = 0;
|
int h = 0;
|
||||||
u_int32_t hashes[2] = { 0, 0 };
|
uint32_t hashes[2] = { 0, 0 };
|
||||||
struct ifmultiaddr *ifma;
|
struct ifmultiaddr *ifma;
|
||||||
|
|
||||||
ifp = sc->ste_ifp;
|
ifp = sc->ste_ifp;
|
||||||
@ -613,7 +613,7 @@ ste_poll_locked(struct ifnet *ifp, enum poll_cmd cmd, int count)
|
|||||||
ste_start_locked(ifp);
|
ste_start_locked(ifp);
|
||||||
|
|
||||||
if (cmd == POLL_AND_CHECK_STATUS) {
|
if (cmd == POLL_AND_CHECK_STATUS) {
|
||||||
u_int16_t status;
|
uint16_t status;
|
||||||
|
|
||||||
status = CSR_READ_2(sc, STE_ISR_ACK);
|
status = CSR_READ_2(sc, STE_ISR_ACK);
|
||||||
|
|
||||||
@ -642,7 +642,7 @@ ste_intr(void *xsc)
|
|||||||
{
|
{
|
||||||
struct ste_softc *sc;
|
struct ste_softc *sc;
|
||||||
struct ifnet *ifp;
|
struct ifnet *ifp;
|
||||||
u_int16_t status;
|
uint16_t status;
|
||||||
|
|
||||||
sc = xsc;
|
sc = xsc;
|
||||||
STE_LOCK(sc);
|
STE_LOCK(sc);
|
||||||
@ -736,7 +736,7 @@ ste_rxeof(struct ste_softc *sc)
|
|||||||
struct ifnet *ifp;
|
struct ifnet *ifp;
|
||||||
struct ste_chain_onefrag *cur_rx;
|
struct ste_chain_onefrag *cur_rx;
|
||||||
int total_len = 0, count=0, rx_npkts = 0;
|
int total_len = 0, count=0, rx_npkts = 0;
|
||||||
u_int32_t rxstat;
|
uint32_t rxstat;
|
||||||
|
|
||||||
STE_LOCK_ASSERT(sc);
|
STE_LOCK_ASSERT(sc);
|
||||||
|
|
||||||
@ -819,7 +819,7 @@ ste_rxeof(struct ste_softc *sc)
|
|||||||
static void
|
static void
|
||||||
ste_txeoc(struct ste_softc *sc)
|
ste_txeoc(struct ste_softc *sc)
|
||||||
{
|
{
|
||||||
u_int8_t txstat;
|
uint8_t txstat;
|
||||||
struct ifnet *ifp;
|
struct ifnet *ifp;
|
||||||
|
|
||||||
ifp = sc->ste_ifp;
|
ifp = sc->ste_ifp;
|
||||||
|
@ -386,27 +386,27 @@
|
|||||||
|
|
||||||
|
|
||||||
struct ste_stats {
|
struct ste_stats {
|
||||||
u_int32_t ste_rx_bytes;
|
uint32_t ste_rx_bytes;
|
||||||
u_int32_t ste_tx_bytes;
|
uint32_t ste_tx_bytes;
|
||||||
u_int16_t ste_tx_frames;
|
uint16_t ste_tx_frames;
|
||||||
u_int16_t ste_rx_frames;
|
uint16_t ste_rx_frames;
|
||||||
u_int8_t ste_carrsense_errs;
|
uint8_t ste_carrsense_errs;
|
||||||
u_int8_t ste_late_colls;
|
uint8_t ste_late_colls;
|
||||||
u_int8_t ste_multi_colls;
|
uint8_t ste_multi_colls;
|
||||||
u_int8_t ste_single_colls;
|
uint8_t ste_single_colls;
|
||||||
u_int8_t ste_tx_frames_defered;
|
uint8_t ste_tx_frames_defered;
|
||||||
u_int8_t ste_rx_lost_frames;
|
uint8_t ste_rx_lost_frames;
|
||||||
u_int8_t ste_tx_excess_defers;
|
uint8_t ste_tx_excess_defers;
|
||||||
u_int8_t ste_tx_abort_excess_colls;
|
uint8_t ste_tx_abort_excess_colls;
|
||||||
u_int8_t ste_tx_bcast_frames;
|
uint8_t ste_tx_bcast_frames;
|
||||||
u_int8_t ste_rx_bcast_frames;
|
uint8_t ste_rx_bcast_frames;
|
||||||
u_int8_t ste_tx_mcast_frames;
|
uint8_t ste_tx_mcast_frames;
|
||||||
u_int8_t ste_rx_mcast_frames;
|
uint8_t ste_rx_mcast_frames;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ste_frag {
|
struct ste_frag {
|
||||||
u_int32_t ste_addr;
|
uint32_t ste_addr;
|
||||||
u_int32_t ste_len;
|
uint32_t ste_len;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define STE_FRAG_LAST 0x80000000
|
#define STE_FRAG_LAST 0x80000000
|
||||||
@ -415,14 +415,14 @@ struct ste_frag {
|
|||||||
#define STE_MAXFRAGS 8
|
#define STE_MAXFRAGS 8
|
||||||
|
|
||||||
struct ste_desc {
|
struct ste_desc {
|
||||||
u_int32_t ste_next;
|
uint32_t ste_next;
|
||||||
u_int32_t ste_ctl;
|
uint32_t ste_ctl;
|
||||||
struct ste_frag ste_frags[STE_MAXFRAGS];
|
struct ste_frag ste_frags[STE_MAXFRAGS];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ste_desc_onefrag {
|
struct ste_desc_onefrag {
|
||||||
u_int32_t ste_next;
|
uint32_t ste_next;
|
||||||
u_int32_t ste_status;
|
uint32_t ste_status;
|
||||||
struct ste_frag ste_frag;
|
struct ste_frag ste_frag;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -472,8 +472,8 @@ struct ste_desc_onefrag {
|
|||||||
#define STE_NEXT(x, y) (x + 1) % y
|
#define STE_NEXT(x, y) (x + 1) % y
|
||||||
|
|
||||||
struct ste_type {
|
struct ste_type {
|
||||||
u_int16_t ste_vid;
|
uint16_t ste_vid;
|
||||||
u_int16_t ste_did;
|
uint16_t ste_did;
|
||||||
char *ste_name;
|
char *ste_name;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -486,7 +486,7 @@ struct ste_chain {
|
|||||||
struct ste_desc *ste_ptr;
|
struct ste_desc *ste_ptr;
|
||||||
struct mbuf *ste_mbuf;
|
struct mbuf *ste_mbuf;
|
||||||
struct ste_chain *ste_next;
|
struct ste_chain *ste_next;
|
||||||
u_int32_t ste_phys;
|
uint32_t ste_phys;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ste_chain_onefrag {
|
struct ste_chain_onefrag {
|
||||||
@ -515,7 +515,7 @@ struct ste_softc {
|
|||||||
device_t ste_miibus;
|
device_t ste_miibus;
|
||||||
device_t ste_dev;
|
device_t ste_dev;
|
||||||
int ste_tx_thresh;
|
int ste_tx_thresh;
|
||||||
u_int8_t ste_link;
|
uint8_t ste_link;
|
||||||
int ste_if_flags;
|
int ste_if_flags;
|
||||||
int ste_timer;
|
int ste_timer;
|
||||||
struct ste_chain *ste_tx_prev;
|
struct ste_chain *ste_tx_prev;
|
||||||
@ -523,7 +523,7 @@ struct ste_softc {
|
|||||||
struct ste_chain_data ste_cdata;
|
struct ste_chain_data ste_cdata;
|
||||||
struct callout ste_stat_callout;
|
struct callout ste_stat_callout;
|
||||||
struct mtx ste_mtx;
|
struct mtx ste_mtx;
|
||||||
u_int8_t ste_one_phy;
|
uint8_t ste_one_phy;
|
||||||
#ifdef DEVICE_POLLING
|
#ifdef DEVICE_POLLING
|
||||||
int rxcycles;
|
int rxcycles;
|
||||||
#endif
|
#endif
|
||||||
@ -534,12 +534,12 @@ struct ste_softc {
|
|||||||
#define STE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->ste_mtx, MA_OWNED)
|
#define STE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->ste_mtx, MA_OWNED)
|
||||||
|
|
||||||
struct ste_mii_frame {
|
struct ste_mii_frame {
|
||||||
u_int8_t mii_stdelim;
|
uint8_t mii_stdelim;
|
||||||
u_int8_t mii_opcode;
|
uint8_t mii_opcode;
|
||||||
u_int8_t mii_phyaddr;
|
uint8_t mii_phyaddr;
|
||||||
u_int8_t mii_regaddr;
|
uint8_t mii_regaddr;
|
||||||
u_int8_t mii_turnaround;
|
uint8_t mii_turnaround;
|
||||||
u_int16_t mii_data;
|
uint16_t mii_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user