Whitespace fixes.
This commit is contained in:
parent
3fba39846b
commit
b32942bb23
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_aue.c,v 1.73 2002/02/02 06:04:46 gehenna Exp $ */
|
||||
/* $NetBSD: if_aue.c,v 1.74 2002/03/17 18:02:52 augustss Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, 1999, 2000
|
||||
* Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.73 2002/02/02 06:04:46 gehenna Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.74 2002/03/17 18:02:52 augustss Exp $");
|
||||
|
||||
#if defined(__NetBSD__)
|
||||
#include "opt_inet.h"
|
||||
@ -1100,7 +1100,7 @@ aue_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
|
||||
|
||||
usbd_get_xfer_status(xfer, NULL, NULL, &total_len, NULL);
|
||||
|
||||
memcpy(mtod(c->aue_mbuf, char*), c->aue_buf, total_len);
|
||||
memcpy(mtod(c->aue_mbuf, char *), c->aue_buf, total_len);
|
||||
|
||||
if (total_len <= 4 + ETHER_CRC_LEN) {
|
||||
ifp->if_ierrors++;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_kue.c,v 1.46 2001/12/12 15:36:09 augustss Exp $ */
|
||||
/* $NetBSD: if_kue.c,v 1.47 2002/03/17 18:02:52 augustss Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, 1999, 2000
|
||||
* Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
|
||||
@ -70,7 +70,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_kue.c,v 1.46 2001/12/12 15:36:09 augustss Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_kue.c,v 1.47 2002/03/17 18:02:52 augustss Exp $");
|
||||
|
||||
#if defined(__NetBSD__)
|
||||
#include "opt_inet.h"
|
||||
@ -757,7 +757,7 @@ kue_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
|
||||
|
||||
m = c->kue_mbuf;
|
||||
/* copy data to mbuf */
|
||||
memcpy(mtod(m, char*), c->kue_buf, total_len);
|
||||
memcpy(mtod(m, char *), c->kue_buf, total_len);
|
||||
|
||||
/* No errors; receive the packet. */
|
||||
total_len = UGETW(mtod(m, u_int8_t *));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ohci.c,v 1.121 2002/03/16 16:11:18 tsutsui Exp $ */
|
||||
/* $NetBSD: ohci.c,v 1.122 2002/03/17 18:02:52 augustss Exp $ */
|
||||
/* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */
|
||||
|
||||
/*
|
||||
@ -46,7 +46,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.121 2002/03/16 16:11:18 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.122 2002/03/17 18:02:52 augustss Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -599,7 +599,7 @@ ohci_alloc_sitd(ohci_softc_t *sc)
|
||||
return (NULL);
|
||||
for(i = 0; i < OHCI_SITD_CHUNK; i++) {
|
||||
offs = i * OHCI_SITD_SIZE;
|
||||
sitd = (ohci_soft_itd_t *)((char*)KERNADDR(&dma)+offs);
|
||||
sitd = (ohci_soft_itd_t *)((char *)KERNADDR(&dma)+offs);
|
||||
sitd->physaddr = DMAADDR(&dma) + offs;
|
||||
sitd->nextitd = sc->sc_freeitds;
|
||||
sc->sc_freeitds = sitd;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uhci.c,v 1.157 2002/03/16 16:13:41 tsutsui Exp $ */
|
||||
/* $NetBSD: uhci.c,v 1.158 2002/03/17 18:02:53 augustss Exp $ */
|
||||
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
|
||||
|
||||
/*
|
||||
@ -49,7 +49,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.157 2002/03/16 16:13:41 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.158 2002/03/17 18:02:53 augustss Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -252,7 +252,7 @@ Static void uhci_softintr(void *);
|
||||
Static usbd_status uhci_device_request(usbd_xfer_handle xfer);
|
||||
|
||||
Static void uhci_add_intr(uhci_softc_t *, uhci_soft_qh_t *);
|
||||
Static void uhci_remove_intr(uhci_softc_t*, uhci_soft_qh_t*);
|
||||
Static void uhci_remove_intr(uhci_softc_t *, uhci_soft_qh_t *);
|
||||
Static usbd_status uhci_device_setintr(uhci_softc_t *sc,
|
||||
struct uhci_pipe *pipe, int ival);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uhid.c,v 1.50 2002/02/20 20:30:12 christos Exp $ */
|
||||
/* $NetBSD: uhid.c,v 1.51 2002/03/17 18:02:53 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uhid.c,v 1.50 2002/02/20 20:30:12 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uhid.c,v 1.51 2002/03/17 18:02:53 augustss Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -217,7 +217,7 @@ uhid_intr(struct uhidev *addr, void *data, u_int len)
|
||||
|
||||
DPRINTF(("uhid_intr: data ="));
|
||||
for (i = 0; i < len; i++)
|
||||
DPRINTF((" %02x", ((u_char*)data)[i]));
|
||||
DPRINTF((" %02x", ((u_char *)data)[i]));
|
||||
DPRINTF(("\n"));
|
||||
}
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: umass.c,v 1.86 2002/02/07 13:52:54 augustss Exp $ */
|
||||
/* $NetBSD: umass.c,v 1.87 2002/03/17 18:02:53 augustss Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1999 MAEKAWA Masahide <bishop@rr.iij4u.or.jp>,
|
||||
* Nick Hibma <n_hibma@freebsd.org>
|
||||
@ -94,7 +94,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: umass.c,v 1.86 2002/02/07 13:52:54 augustss Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: umass.c,v 1.87 2002/03/17 18:02:53 augustss Exp $");
|
||||
|
||||
#include "atapibus.h"
|
||||
#include "scsibus.h"
|
||||
@ -834,7 +834,7 @@ umass_bbb_transfer(struct umass_softc *sc, int lun, void *cmd, int cmdlen,
|
||||
static int dCBWtag = 42; /* unique for CBW of transfer */
|
||||
|
||||
DPRINTF(UDMASS_BBB,("%s: umass_bbb_transfer cmd=0x%02x\n",
|
||||
USBDEVNAME(sc->sc_dev), *(u_char*)cmd));
|
||||
USBDEVNAME(sc->sc_dev), *(u_char *)cmd));
|
||||
|
||||
KASSERT(sc->sc_wire & UMASS_WPROTO_BBB,
|
||||
("sc->sc_wire == 0x%02x wrong for umass_bbb_transfer\n",
|
||||
@ -1321,7 +1321,7 @@ umass_cbi_transfer(struct umass_softc *sc, int lun,
|
||||
u_int timeout, umass_callback cb, void *priv)
|
||||
{
|
||||
DPRINTF(UDMASS_CBI,("%s: umass_cbi_transfer cmd=0x%02x, len=%d\n",
|
||||
USBDEVNAME(sc->sc_dev), *(u_char*)cmd, datalen));
|
||||
USBDEVNAME(sc->sc_dev), *(u_char *)cmd, datalen));
|
||||
|
||||
KASSERT(sc->sc_wire & (UMASS_WPROTO_CBI|UMASS_WPROTO_CBI_I),
|
||||
("sc->sc_wire == 0x%02x wrong for umass_cbi_transfer\n",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: usbdi_util.h,v 1.26 2001/12/27 11:24:42 augustss Exp $ */
|
||||
/* $NetBSD: usbdi_util.h,v 1.27 2002/03/17 18:02:53 augustss Exp $ */
|
||||
/* $FreeBSD: src/sys/dev/usb/usbdi_util.h,v 1.9 1999/11/17 22:33:50 n_hibma Exp $ */
|
||||
|
||||
/*
|
||||
@ -52,7 +52,7 @@ usbd_status usbd_set_hub_feature(usbd_device_handle dev, int);
|
||||
usbd_status usbd_clear_hub_feature(usbd_device_handle, int);
|
||||
usbd_status usbd_set_port_feature(usbd_device_handle dev, int, int);
|
||||
usbd_status usbd_clear_port_feature(usbd_device_handle, int, int);
|
||||
usbd_status usbd_get_device_status(usbd_device_handle,usb_status_t*);
|
||||
usbd_status usbd_get_device_status(usbd_device_handle, usb_status_t *);
|
||||
usbd_status usbd_get_hub_status(usbd_device_handle, usb_hub_status_t *);
|
||||
usbd_status usbd_get_protocol(usbd_interface_handle dev, u_int8_t *report);
|
||||
usbd_status usbd_set_protocol(usbd_interface_handle dev, int report);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ustir.c,v 1.1 2002/01/03 18:54:31 augustss Exp $ */
|
||||
/* $NetBSD: ustir.c,v 1.2 2002/03/17 18:02:53 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ustir.c,v 1.1 2002/01/03 18:54:31 augustss Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ustir.c,v 1.2 2002/03/17 18:02:53 augustss Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -152,11 +152,11 @@ struct framestate {
|
||||
|
||||
#define deframe_isclear(fs) ((fs)->fsmstate == FSTATE_END_OF_FRAME)
|
||||
|
||||
Static void deframe_clear(struct framestate*);
|
||||
Static void deframe_init(struct framestate*, struct framedefn const*,
|
||||
u_int8_t*, size_t);
|
||||
Static enum frameresult deframe_process(struct framestate*, u_int8_t const**,
|
||||
size_t*);
|
||||
Static void deframe_clear(struct framestate *);
|
||||
Static void deframe_init(struct framestate *, struct framedefn const *,
|
||||
u_int8_t *, size_t);
|
||||
Static enum frameresult deframe_process(struct framestate *, u_int8_t const **,
|
||||
size_t *);
|
||||
|
||||
struct ustir_softc {
|
||||
USBBASEDEVICE sc_dev;
|
||||
@ -230,9 +230,9 @@ Static struct irframe_methods const ustir_methods = {
|
||||
};
|
||||
|
||||
Static void ustir_rd_cb(usbd_xfer_handle, usbd_private_handle, usbd_status);
|
||||
Static usbd_status ustir_start_read(struct ustir_softc*);
|
||||
Static void ustir_periodic(struct ustir_softc*);
|
||||
Static void ustir_thread(void*);
|
||||
Static usbd_status ustir_start_read(struct ustir_softc *);
|
||||
Static void ustir_periodic(struct ustir_softc *);
|
||||
Static void ustir_thread(void *);
|
||||
|
||||
Static u_int32_t
|
||||
crc_ccitt_16(u_int32_t crcinit, u_int8_t const *buf, size_t blen)
|
||||
@ -1191,7 +1191,7 @@ Static int ustir_ioctl(void *h, u_long cmd, caddr_t addr, int flag, usb_proc_ptr
|
||||
error = 0;
|
||||
switch (cmd) {
|
||||
case USTIR_READ_REGISTER:
|
||||
regnum = *(unsigned int*)addr;
|
||||
regnum = *(unsigned int *)addr;
|
||||
|
||||
if (regnum > STIR_MAX_REG) {
|
||||
error = EINVAL;
|
||||
@ -1203,7 +1203,7 @@ Static int ustir_ioctl(void *h, u_long cmd, caddr_t addr, int flag, usb_proc_ptr
|
||||
DPRINTFN(10, ("%s: regget(%u) = 0x%x\n", __FUNCTION__,
|
||||
regnum, (unsigned int)regdata));
|
||||
|
||||
*(unsigned int*)addr = regdata;
|
||||
*(unsigned int *)addr = regdata;
|
||||
if (err) {
|
||||
printf("%s: register read failed: %s\n",
|
||||
USBDEVNAME(sc->sc_dev),
|
||||
@ -1213,7 +1213,7 @@ Static int ustir_ioctl(void *h, u_long cmd, caddr_t addr, int flag, usb_proc_ptr
|
||||
break;
|
||||
|
||||
case USTIR_WRITE_REGISTER:
|
||||
regnum = *(unsigned int*)addr;
|
||||
regnum = *(unsigned int *)addr;
|
||||
regdata = (regnum >> 8) & 0xff;
|
||||
regnum = regnum & 0xff;
|
||||
|
||||
@ -1236,7 +1236,7 @@ Static int ustir_ioctl(void *h, u_long cmd, caddr_t addr, int flag, usb_proc_ptr
|
||||
|
||||
case USTIR_DEBUG_LEVEL:
|
||||
#ifdef USTIR_DEBUG
|
||||
ustirdebug = *(int*)addr;
|
||||
ustirdebug = *(int *)addr;
|
||||
#endif
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user