From owner-p4-projects@FreeBSD.ORG Tue Sep 26 12:34:00 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D448F16A698; Tue, 26 Sep 2006 12:33:59 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EEC416A64A for ; Tue, 26 Sep 2006 12:33:59 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ED2A43D6B for ; Tue, 26 Sep 2006 12:33:48 +0000 (GMT) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8QCXmIG018032 for ; Tue, 26 Sep 2006 12:33:48 GMT (envelope-from attilio@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8QCXlXp018026 for perforce@freebsd.org; Tue, 26 Sep 2006 12:33:47 GMT (envelope-from attilio@FreeBSD.org) Date: Tue, 26 Sep 2006 12:33:47 GMT Message-Id: <200609261233.k8QCXlXp018026@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to attilio@FreeBSD.org using -f From: Attilio Rao To: Perforce Change Reviews Cc: Subject: PERFORCE change 106716 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2006 12:34:00 -0000 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]; };