Date: Tue, 26 Sep 2006 12:33:47 GMT From: Attilio Rao <attilio@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 106716 for review Message-ID: <200609261233.k8QCXlXp018026@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=106716 Change 106716 by attilio@attilio_laptop on 2006/09/26 12:32:49 It change BSDish u_* with ANSI C u* and generically applies style(9). Affected files ... .. //depot/projects/usb/src/sys/dev/usb/if_auereg.h#7 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/if_auereg.h#7 (text+ko) ==== @@ -172,18 +172,18 @@ #define AUE_GPIO_SEL1 0x20 struct aue_intrpkt { - u_int8_t aue_txstat0; - u_int8_t aue_txstat1; - u_int8_t aue_rxstat; - u_int8_t aue_rxlostpkt0; - u_int8_t aue_rxlostpkt1; - u_int8_t aue_wakeupstat; - u_int8_t aue_rsvd; + uint8_t aue_txstat0; + uint8_t aue_txstat1; + uint8_t aue_rxstat; + uint8_t aue_rxlostpkt0; + uint8_t aue_rxlostpkt1; + uint8_t aue_wakeupstat; + uint8_t aue_rsvd; } __packed; struct aue_rxpkt { - u_int16_t aue_pktlen; - u_int8_t aue_rxstat; + uint16_t aue_pktlen; + uint8_t aue_rxstat; } __packed; #define AUE_RXSTAT_MCAST 0x01 @@ -193,7 +193,7 @@ #define AUE_RXSTAT_DRIBBLE 0x10 #define AUE_RXSTAT_MASK 0x1E -#define GET_MII(sc) ((sc)->sc_miibus ? \ +#define GET_MII(sc) ((sc)->sc_miibus ? \ device_get_softc((sc)->sc_miibus) : NULL) struct aue_softc { @@ -203,37 +203,37 @@ struct mtx sc_mtx; struct aue_rxpkt sc_rxpkt; - struct ifnet * sc_ifp; - struct usbd_device * sc_udev; - struct usbd_xfer * sc_xfer[AUE_ENDPT_MAX]; + struct ifnet *sc_ifp; + struct usbd_device *sc_udev; + struct usbd_xfer *sc_xfer[AUE_ENDPT_MAX]; device_t sc_miibus; device_t sc_dev; - u_int32_t sc_unit; - u_int32_t sc_media_active; - u_int32_t sc_media_status; + uint32_t sc_unit; + uint32_t sc_media_active; + uint32_t sc_media_status; - u_int16_t sc_vendor; - u_int16_t sc_product; - u_int16_t sc_flags; -#define AUE_FLAG_LSYS 0x0001 /* use Linksys reset */ -#define AUE_FLAG_PNA 0x0002 /* has Home PNA */ -#define AUE_FLAG_PII 0x0004 /* Pegasus II chip */ -#define AUE_FLAG_WAIT_LINK 0x0008 /* wait for link to come up */ -#define AUE_FLAG_READ_STALL 0x0010 /* wait for clearing of stall */ -#define AUE_FLAG_WRITE_STALL 0x0020 /* wait for clearing of stall */ -#define AUE_FLAG_LL_READY 0x0040 /* Lower Layer Ready */ -#define AUE_FLAG_HL_READY 0x0080 /* Higher Layer Ready */ -#define AUE_FLAG_INTR_STALL 0x0100 /* wait for clearing of stall */ + uint16_t sc_vendor; + uint16_t sc_product; + uint16_t sc_flags; +#define AUE_FLAG_LSYS 0x0001 /* use Linksys reset */ +#define AUE_FLAG_PNA 0x0002 /* has Home PNA */ +#define AUE_FLAG_PII 0x0004 /* Pegasus II chip */ +#define AUE_FLAG_WAIT_LINK 0x0008 /* wait for link to come up */ +#define AUE_FLAG_READ_STALL 0x0010 /* wait for clearing of stall */ +#define AUE_FLAG_WRITE_STALL 0x0020 /* wait for clearing of stall */ +#define AUE_FLAG_LL_READY 0x0040 /* Lower Layer Ready */ +#define AUE_FLAG_HL_READY 0x0080 /* Higher Layer Ready */ +#define AUE_FLAG_INTR_STALL 0x0100 /* wait for clearing of stall */ - u_int8_t sc_name[16]; + uint8_t sc_name[16]; }; #define AUE_TIMEOUT 100 /* 10*ms */ #define AUE_MIN_FRAMELEN 60 struct aue_config_copy { - u_int32_t if_flags; - u_int8_t if_lladdr[ETHER_ADDR_LEN]; - u_int8_t if_hash[8]; + uint32_t if_flags; + uint8_t if_lladdr[ETHER_ADDR_LEN]; + uint8_t if_hash[8]; };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609261233.k8QCXlXp018026>