__inline__ -> inline
This commit is contained in:
parent
4a2c58419f
commit
3d4ed1fbc7
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: coda.h,v 1.11 2005/12/11 12:19:50 christos Exp $ */
|
||||
/* $NetBSD: coda.h,v 1.12 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*
|
||||
|
||||
@ -202,13 +202,13 @@ typedef struct {
|
||||
u_long Unique;
|
||||
} CodaFid;
|
||||
|
||||
static __inline__ ino_t coda_f2i(CodaFid *fid)
|
||||
static inline ino_t coda_f2i(CodaFid *fid)
|
||||
{
|
||||
if (!fid) return 0;
|
||||
return (fid->Unique + (fid->Vnode<<10) + (fid->Volume<<20));
|
||||
}
|
||||
|
||||
static __inline__ char * coda_f2s(CodaFid *fid)
|
||||
static inline char * coda_f2s(CodaFid *fid)
|
||||
{
|
||||
static char fid_str [35];
|
||||
snprintf (fid_str, 35, "[%lx.%lx.%lx]", fid->Volume,
|
||||
@ -216,7 +216,7 @@ static __inline__ char * coda_f2s(CodaFid *fid)
|
||||
return fid_str;
|
||||
}
|
||||
|
||||
static __inline__ int coda_fid_eq (CodaFid *fid1, CodaFid *fid2)
|
||||
static inline int coda_fid_eq (CodaFid *fid1, CodaFid *fid2)
|
||||
{
|
||||
return (fid1->Volume == fid2->Volume &&
|
||||
fid1->Vnode == fid2->Vnode &&
|
||||
@ -235,13 +235,13 @@ typedef struct {
|
||||
} CodaFid;
|
||||
|
||||
|
||||
static __inline__ ino_t coda_f2i(CodaFid *fid)
|
||||
static inline ino_t coda_f2i(CodaFid *fid)
|
||||
{
|
||||
if (!fid) return 0;
|
||||
return (fid->opaque[1] + (fid->opaque[2]<<10) + (fid->opaque[3]<<20));
|
||||
}
|
||||
|
||||
static __inline__ char * coda_f2s(CodaFid *fid)
|
||||
static inline char * coda_f2s(CodaFid *fid)
|
||||
{
|
||||
static char fid_str [35];
|
||||
snprintf (fid_str, 35, "[%x.%x.%x.%x]", fid->opaque[0],
|
||||
@ -249,7 +249,7 @@ static __inline__ char * coda_f2s(CodaFid *fid)
|
||||
return fid_str;
|
||||
}
|
||||
|
||||
static __inline__ int coda_fid_eq (CodaFid *fid1, CodaFid *fid2)
|
||||
static inline int coda_fid_eq (CodaFid *fid1, CodaFid *fid2)
|
||||
{
|
||||
return (fid1->opaque[0] == fid2->opaque[0] &&
|
||||
fid1->opaque[1] == fid2->opaque[1] &&
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sunos_misc.c,v 1.134 2005/12/11 12:20:23 christos Exp $ */
|
||||
/* $NetBSD: sunos_misc.c,v 1.135 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -50,7 +50,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.134 2005/12/11 12:20:23 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.135 2005/12/24 23:41:33 perry Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_nfsserver.h"
|
||||
@ -417,7 +417,7 @@ async_daemon(l, v, retval)
|
||||
void native_to_sunos_sigset __P((const sigset_t *, int *));
|
||||
void sunos_to_native_sigset __P((const int, sigset_t *));
|
||||
|
||||
__inline__ void
|
||||
inline void
|
||||
native_to_sunos_sigset(ss, mask)
|
||||
const sigset_t *ss;
|
||||
int *mask;
|
||||
@ -425,7 +425,7 @@ native_to_sunos_sigset(ss, mask)
|
||||
*mask = ss->__bits[0];
|
||||
}
|
||||
|
||||
__inline__ void
|
||||
inline void
|
||||
sunos_to_native_sigset(mask, ss)
|
||||
const int mask;
|
||||
sigset_t *ss;
|
||||
@ -726,9 +726,9 @@ sunos_sys_setsockopt(l, v, retval)
|
||||
return (error);
|
||||
}
|
||||
|
||||
static __inline__ int sunos_sys_socket_common(struct lwp *, register_t *,
|
||||
static inline int sunos_sys_socket_common(struct lwp *, register_t *,
|
||||
int type);
|
||||
static __inline__ int
|
||||
static inline int
|
||||
sunos_sys_socket_common(l, retval, type)
|
||||
struct lwp *l;
|
||||
register_t *retval;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sunos32_misc.c,v 1.34 2005/12/24 20:45:08 perry Exp $ */
|
||||
/* $NetBSD: sunos32_misc.c,v 1.35 2005/12/24 23:41:33 perry Exp $ */
|
||||
/* from :NetBSD: sunos_misc.c,v 1.107 2000/12/01 19:25:10 jdolecek Exp */
|
||||
|
||||
/*
|
||||
@ -79,7 +79,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.34 2005/12/24 20:45:08 perry Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.35 2005/12/24 23:41:33 perry Exp $");
|
||||
|
||||
#define COMPAT_SUNOS 1
|
||||
|
||||
@ -636,7 +636,7 @@ async_daemon(l, v, retval)
|
||||
void native_to_sunos_sigset __P((const sigset_t *, int *));
|
||||
void sunos_to_native_sigset __P((const int, sigset_t *));
|
||||
|
||||
__inline__ void
|
||||
inline void
|
||||
native_to_sunos_sigset(ss, mask)
|
||||
const sigset_t *ss;
|
||||
int *mask;
|
||||
@ -644,7 +644,7 @@ native_to_sunos_sigset(ss, mask)
|
||||
*mask = ss->__bits[0];
|
||||
}
|
||||
|
||||
__inline__ void
|
||||
inline void
|
||||
sunos_to_native_sigset(mask, ss)
|
||||
const int mask;
|
||||
sigset_t *ss;
|
||||
@ -979,9 +979,9 @@ sunos32_sys_setsockopt(l, v, retval)
|
||||
return (error);
|
||||
}
|
||||
|
||||
static __inline__ int sunos32_sys_socket_common(struct lwp *, register_t *,
|
||||
static inline int sunos32_sys_socket_common(struct lwp *, register_t *,
|
||||
int type);
|
||||
static __inline__ int
|
||||
static inline int
|
||||
sunos32_sys_socket_common(l, retval, type)
|
||||
struct lwp *l;
|
||||
register_t *retval;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cs89x0var.h,v 1.9 2005/12/11 12:21:26 christos Exp $ */
|
||||
/* $NetBSD: cs89x0var.h,v 1.10 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997
|
||||
@ -185,9 +185,9 @@ struct cs_softc {
|
||||
* Inlines for reading/writing the packet page area.
|
||||
*/
|
||||
|
||||
static __inline__ u_int16_t _cs_read_port(struct cs_softc *, int);
|
||||
static inline u_int16_t _cs_read_port(struct cs_softc *, int);
|
||||
|
||||
static __inline__ u_int16_t
|
||||
static inline u_int16_t
|
||||
_cs_read_port(struct cs_softc *sc, int off)
|
||||
{
|
||||
u_int16_t result;
|
||||
@ -209,9 +209,9 @@ _cs_read_port(struct cs_softc *sc, int off)
|
||||
return result;
|
||||
}
|
||||
|
||||
static __inline__ u_int16_t _CS_READ_PACKET_PAGE_IO(struct cs_softc *, int);
|
||||
static inline u_int16_t _CS_READ_PACKET_PAGE_IO(struct cs_softc *, int);
|
||||
|
||||
static __inline__ u_int16_t
|
||||
static inline u_int16_t
|
||||
_CS_READ_PACKET_PAGE_IO(struct cs_softc *sc, int offset)
|
||||
{
|
||||
|
||||
@ -219,9 +219,9 @@ _CS_READ_PACKET_PAGE_IO(struct cs_softc *sc, int offset)
|
||||
return (_cs_read_port(sc, PORT_PKTPG_DATA));
|
||||
}
|
||||
|
||||
static __inline__ u_int16_t CS_READ_PACKET_PAGE_IO(struct cs_softc *, int);
|
||||
static inline u_int16_t CS_READ_PACKET_PAGE_IO(struct cs_softc *, int);
|
||||
|
||||
static __inline__ u_int16_t
|
||||
static inline u_int16_t
|
||||
CS_READ_PACKET_PAGE_IO(struct cs_softc *sc, int offset)
|
||||
{
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dp8390.c,v 1.56 2005/12/11 12:21:26 christos Exp $ */
|
||||
/* $NetBSD: dp8390.c,v 1.57 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Device driver for National Semiconductor DS8390/WD83C690 based ethernet
|
||||
@ -14,7 +14,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: dp8390.c,v 1.56 2005/12/11 12:21:26 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dp8390.c,v 1.57 2005/12/24 23:41:33 perry Exp $");
|
||||
|
||||
#include "opt_ipkdb.h"
|
||||
#include "opt_inet.h"
|
||||
@ -69,17 +69,17 @@ __KERNEL_RCSID(0, "$NetBSD: dp8390.c,v 1.56 2005/12/11 12:21:26 christos Exp $")
|
||||
#include <dev/ic/dp8390var.h>
|
||||
|
||||
#ifdef DEBUG
|
||||
#define __inline__ /* XXX for debugging porpoises */
|
||||
#define inline /* XXX for debugging porpoises */
|
||||
int dp8390_debug = 0;
|
||||
#endif
|
||||
|
||||
static __inline__ void dp8390_xmit(struct dp8390_softc *);
|
||||
static inline void dp8390_xmit(struct dp8390_softc *);
|
||||
|
||||
static __inline__ void dp8390_read_hdr(struct dp8390_softc *,
|
||||
static inline void dp8390_read_hdr(struct dp8390_softc *,
|
||||
int, struct dp8390_ring *);
|
||||
static __inline__ int dp8390_ring_copy(struct dp8390_softc *,
|
||||
static inline int dp8390_ring_copy(struct dp8390_softc *,
|
||||
int, caddr_t, u_short);
|
||||
static __inline__ int dp8390_write_mbuf(struct dp8390_softc *,
|
||||
static inline int dp8390_write_mbuf(struct dp8390_softc *,
|
||||
struct mbuf *, int);
|
||||
|
||||
static int dp8390_test_mem(struct dp8390_softc *);
|
||||
@ -409,7 +409,7 @@ dp8390_init(sc)
|
||||
/*
|
||||
* This routine actually starts the transmission on the interface.
|
||||
*/
|
||||
static __inline__ void
|
||||
static inline void
|
||||
dp8390_xmit(sc)
|
||||
struct dp8390_softc *sc;
|
||||
{
|
||||
@ -1182,7 +1182,7 @@ dp8390_test_mem(sc)
|
||||
/*
|
||||
* Read a packet header from the ring, given the source offset.
|
||||
*/
|
||||
static __inline__ void
|
||||
static inline void
|
||||
dp8390_read_hdr(sc, src, hdrp)
|
||||
struct dp8390_softc *sc;
|
||||
int src;
|
||||
@ -1206,7 +1206,7 @@ dp8390_read_hdr(sc, src, hdrp)
|
||||
* destination buffer, given a source offset and destination address.
|
||||
* Takes into account ring-wrap.
|
||||
*/
|
||||
static __inline__ int
|
||||
static inline int
|
||||
dp8390_ring_copy(sc, src, dst, amount)
|
||||
struct dp8390_softc *sc;
|
||||
int src;
|
||||
@ -1239,7 +1239,7 @@ dp8390_ring_copy(sc, src, dst, amount)
|
||||
* Currently uses an extra buffer/extra memory copy, unless the whole
|
||||
* packet fits in one mbuf.
|
||||
*/
|
||||
static __inline__ int
|
||||
static inline int
|
||||
dp8390_write_mbuf(sc, m, buf)
|
||||
struct dp8390_softc *sc;
|
||||
struct mbuf *m;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dpt.c,v 1.45 2005/12/11 12:21:26 christos Exp $ */
|
||||
/* $NetBSD: dpt.c,v 1.46 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
@ -78,7 +78,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: dpt.c,v 1.45 2005/12/11 12:21:26 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dpt.c,v 1.46 2005/12/24 23:41:33 perry Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -204,10 +204,10 @@ static void dpt_shutdown(void *);
|
||||
static void dpt_sysinfo(struct dpt_softc *, struct dpt_sysinfo *);
|
||||
static int dpt_wait(struct dpt_softc *, u_int8_t, u_int8_t, int);
|
||||
|
||||
static __inline__ struct dpt_ccb *dpt_ccb_alloc(struct dpt_softc *);
|
||||
static __inline__ void dpt_ccb_free(struct dpt_softc *, struct dpt_ccb *);
|
||||
static inline struct dpt_ccb *dpt_ccb_alloc(struct dpt_softc *);
|
||||
static inline void dpt_ccb_free(struct dpt_softc *, struct dpt_ccb *);
|
||||
|
||||
static __inline__ struct dpt_ccb *
|
||||
static inline struct dpt_ccb *
|
||||
dpt_ccb_alloc(struct dpt_softc *sc)
|
||||
{
|
||||
struct dpt_ccb *ccb;
|
||||
@ -221,7 +221,7 @@ dpt_ccb_alloc(struct dpt_softc *sc)
|
||||
return (ccb);
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
dpt_ccb_free(struct dpt_softc *sc, struct dpt_ccb *ccb)
|
||||
{
|
||||
int s;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: esiop.c,v 1.34 2005/11/18 23:10:32 bouyer Exp $ */
|
||||
/* $NetBSD: esiop.c,v 1.35 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 Manuel Bouyer.
|
||||
@ -33,7 +33,7 @@
|
||||
/* SYM53c7/8xx PCI-SCSI I/O Processors driver */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: esiop.c,v 1.34 2005/11/18 23:10:32 bouyer Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: esiop.c,v 1.35 2005/12/24 23:41:33 perry Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -111,8 +111,8 @@ void esiop_printstats(void);
|
||||
#define INCSTAT(x)
|
||||
#endif
|
||||
|
||||
static __inline__ void esiop_script_sync(struct esiop_softc *, int);
|
||||
static __inline__ void
|
||||
static inline void esiop_script_sync(struct esiop_softc *, int);
|
||||
static inline void
|
||||
esiop_script_sync(sc, ops)
|
||||
struct esiop_softc *sc;
|
||||
int ops;
|
||||
@ -122,8 +122,8 @@ esiop_script_sync(sc, ops)
|
||||
PAGE_SIZE, ops);
|
||||
}
|
||||
|
||||
static __inline__ u_int32_t esiop_script_read(struct esiop_softc *, u_int);
|
||||
static __inline__ u_int32_t
|
||||
static inline u_int32_t esiop_script_read(struct esiop_softc *, u_int);
|
||||
static inline u_int32_t
|
||||
esiop_script_read(sc, offset)
|
||||
struct esiop_softc *sc;
|
||||
u_int offset;
|
||||
@ -136,9 +136,9 @@ esiop_script_read(sc, offset)
|
||||
}
|
||||
}
|
||||
|
||||
static __inline__ void esiop_script_write(struct esiop_softc *, u_int,
|
||||
static inline void esiop_script_write(struct esiop_softc *, u_int,
|
||||
u_int32_t);
|
||||
static __inline__ void
|
||||
static inline void
|
||||
esiop_script_write(sc, offset, val)
|
||||
struct esiop_softc *sc;
|
||||
u_int offset;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: esiopvar.h,v 1.13 2005/11/18 23:10:32 bouyer Exp $ */
|
||||
/* $NetBSD: esiopvar.h,v 1.14 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 Manuel Bouyer.
|
||||
@ -121,8 +121,8 @@ struct esiop_target {
|
||||
u_int32_t lun_table_offset; /* pointer to our DSA table */
|
||||
};
|
||||
|
||||
static __inline__ void esiop_table_sync(struct esiop_cmd *, int);
|
||||
static __inline__ void
|
||||
static inline void esiop_table_sync(struct esiop_cmd *, int);
|
||||
static inline void
|
||||
esiop_table_sync(esiop_cmd, ops)
|
||||
struct esiop_cmd *esiop_cmd;
|
||||
int ops;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hme.c,v 1.52 2005/12/11 12:21:26 christos Exp $ */
|
||||
/* $NetBSD: hme.c,v 1.53 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -41,7 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.52 2005/12/11 12:21:26 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.53 2005/12/24 23:41:33 perry Exp $");
|
||||
|
||||
/* #define HMEDEBUG */
|
||||
|
||||
@ -654,7 +654,7 @@ hme_init(sc)
|
||||
* Compare two Ether/802 addresses for equality, inlined and unrolled for
|
||||
* speed.
|
||||
*/
|
||||
static __inline__ int
|
||||
static inline int
|
||||
ether_cmp(a, b)
|
||||
u_char *a, *b;
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: i82586.c,v 1.54 2005/12/24 20:27:30 perry Exp $ */
|
||||
/* $NetBSD: i82586.c,v 1.55 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -144,7 +144,7 @@ Mode of operation:
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: i82586.c,v 1.54 2005/12/24 20:27:30 perry Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: i82586.c,v 1.55 2005/12/24 23:41:33 perry Exp $");
|
||||
|
||||
#include "bpfilter.h"
|
||||
|
||||
@ -196,8 +196,8 @@ static void i82586_release_rbd_list(struct ie_softc *,
|
||||
static int i82586_drop_frames(struct ie_softc *);
|
||||
static int i82586_chk_rx_ring(struct ie_softc *);
|
||||
|
||||
static __inline__ void ie_ack(struct ie_softc *, u_int);
|
||||
static __inline__ void iexmit(struct ie_softc *);
|
||||
static inline void ie_ack(struct ie_softc *, u_int);
|
||||
static inline void iexmit(struct ie_softc *);
|
||||
static void i82586_start_transceiver(struct ie_softc *);
|
||||
|
||||
static void i82586_count_errors(struct ie_softc *);
|
||||
@ -406,7 +406,7 @@ i82586_start_cmd(sc, cmd, iecmdbuf, mask, async)
|
||||
/*
|
||||
* Interrupt Acknowledge.
|
||||
*/
|
||||
static __inline__ void
|
||||
static inline void
|
||||
ie_ack(sc, mask)
|
||||
struct ie_softc *sc;
|
||||
u_int mask; /* in native byte-order */
|
||||
@ -1098,7 +1098,7 @@ ie_readframe(sc, num)
|
||||
* Setup all necessary artifacts for an XMIT command, and then pass the XMIT
|
||||
* command to the chip to be executed.
|
||||
*/
|
||||
static __inline__ void
|
||||
static inline void
|
||||
iexmit(sc)
|
||||
struct ie_softc *sc;
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: igsfbvar.h,v 1.10 2005/12/11 12:21:27 christos Exp $ */
|
||||
/* $NetBSD: igsfbvar.h,v 1.11 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002, 2003 Valeriy E. Ushakov
|
||||
@ -128,12 +128,12 @@ struct igsfb_softc {
|
||||
* Access sugar for indexed registers
|
||||
*/
|
||||
|
||||
static __inline__ uint8_t
|
||||
static inline uint8_t
|
||||
igs_idx_read(bus_space_tag_t, bus_space_handle_t, u_int, uint8_t);
|
||||
static __inline__ void
|
||||
static inline void
|
||||
igs_idx_write(bus_space_tag_t, bus_space_handle_t, u_int, uint8_t, uint8_t);
|
||||
|
||||
static __inline__ uint8_t
|
||||
static inline uint8_t
|
||||
igs_idx_read(t, h, idxport, idx)
|
||||
bus_space_tag_t t;
|
||||
bus_space_handle_t h;
|
||||
@ -144,7 +144,7 @@ igs_idx_read(t, h, idxport, idx)
|
||||
return (bus_space_read_1(t, h, idxport + 1));
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
igs_idx_write(t, h, idxport, idx, val)
|
||||
bus_space_tag_t t;
|
||||
bus_space_handle_t h;
|
||||
@ -176,10 +176,10 @@ igs_idx_write(t, h, idxport, idx, val)
|
||||
#define igs_attr_read(t,h,x) \
|
||||
(igs_idx_read((t),(h),IGS_ATTR_IDX,(x)))
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
igs_attr_write(bus_space_tag_t, bus_space_handle_t, uint8_t, uint8_t);
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
igs_attr_write(t, h, idx, val)
|
||||
bus_space_tag_t t;
|
||||
bus_space_handle_t h;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mb86960.c,v 1.61 2005/12/11 12:21:27 christos Exp $ */
|
||||
/* $NetBSD: mb86960.c,v 1.62 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*
|
||||
* All Rights Reserved, Copyright (C) Fujitsu Limited 1995
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: mb86960.c,v 1.61 2005/12/11 12:21:27 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mb86960.c,v 1.62 2005/12/24 23:41:33 perry Exp $");
|
||||
|
||||
/*
|
||||
* Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards.
|
||||
@ -111,10 +111,10 @@ int mb86960_get_packet(struct mb86960_softc *, u_int);
|
||||
void mb86960_stop(struct mb86960_softc *);
|
||||
void mb86960_tint(struct mb86960_softc *, uint8_t);
|
||||
void mb86960_rint(struct mb86960_softc *, uint8_t);
|
||||
static __inline__
|
||||
static inline
|
||||
void mb86960_xmit(struct mb86960_softc *);
|
||||
void mb86960_write_mbufs(struct mb86960_softc *, struct mbuf *);
|
||||
static __inline__
|
||||
static inline
|
||||
void mb86960_droppacket(struct mb86960_softc *);
|
||||
void mb86960_getmcaf(struct ethercom *, uint8_t *);
|
||||
void mb86960_setmode(struct mb86960_softc *);
|
||||
@ -449,7 +449,7 @@ mb86960_watchdog(struct ifnet *ifp)
|
||||
/*
|
||||
* Drop (skip) a packet from receive buffer in 86960 memory.
|
||||
*/
|
||||
static __inline__ void
|
||||
static inline void
|
||||
mb86960_droppacket(struct mb86960_softc *sc)
|
||||
{
|
||||
bus_space_tag_t bst = sc->sc_bst;
|
||||
@ -619,7 +619,7 @@ mb86960_init(struct mb86960_softc *sc)
|
||||
/*
|
||||
* This routine actually starts the transmission on the interface
|
||||
*/
|
||||
static __inline__ void
|
||||
static inline void
|
||||
mb86960_xmit(struct mb86960_softc *sc)
|
||||
{
|
||||
bus_space_tag_t bst = sc->sc_bst;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mlx.c,v 1.37 2005/12/11 12:21:27 christos Exp $ */
|
||||
/* $NetBSD: mlx.c,v 1.38 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -74,7 +74,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: mlx.c,v 1.37 2005/12/11 12:21:27 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mlx.c,v 1.38 2005/12/24 23:41:33 perry Exp $");
|
||||
|
||||
#include "ld.h"
|
||||
|
||||
@ -135,7 +135,7 @@ static int mlx_rebuild(struct mlx_softc *, int, int);
|
||||
static void mlx_shutdown(void *);
|
||||
static int mlx_user_command(struct mlx_softc *, struct mlx_usercommand *);
|
||||
|
||||
static __inline__ time_t mlx_curtime(void);
|
||||
static inline time_t mlx_curtime(void);
|
||||
|
||||
dev_type_open(mlxopen);
|
||||
dev_type_close(mlxclose);
|
||||
@ -257,7 +257,7 @@ struct {
|
||||
* Return the current time in seconds - we're not particularly interested in
|
||||
* precision here.
|
||||
*/
|
||||
static __inline__ time_t
|
||||
static inline time_t
|
||||
mlx_curtime(void)
|
||||
{
|
||||
time_t rt;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mlxvar.h,v 1.10 2005/12/11 12:21:27 christos Exp $ */
|
||||
/* $NetBSD: mlxvar.h,v 1.11 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -194,30 +194,30 @@ int mlx_ccb_poll(struct mlx_softc *, struct mlx_ccb *, int);
|
||||
void mlx_ccb_unmap(struct mlx_softc *, struct mlx_ccb *);
|
||||
int mlx_ccb_wait(struct mlx_softc *, struct mlx_ccb *);
|
||||
|
||||
static __inline__ void mlx_make_type1(struct mlx_ccb *, u_int8_t, u_int16_t,
|
||||
static inline void mlx_make_type1(struct mlx_ccb *, u_int8_t, u_int16_t,
|
||||
u_int32_t, u_int8_t, u_int32_t,
|
||||
u_int8_t);
|
||||
static __inline__ void mlx_make_type2(struct mlx_ccb *, u_int8_t, u_int8_t,
|
||||
static inline void mlx_make_type2(struct mlx_ccb *, u_int8_t, u_int8_t,
|
||||
u_int8_t, u_int8_t, u_int8_t,
|
||||
u_int8_t, u_int8_t, u_int32_t,
|
||||
u_int8_t);
|
||||
static __inline__ void mlx_make_type3(struct mlx_ccb *, u_int8_t, u_int8_t,
|
||||
static inline void mlx_make_type3(struct mlx_ccb *, u_int8_t, u_int8_t,
|
||||
u_int8_t, u_int16_t, u_int8_t,
|
||||
u_int8_t, u_int32_t, u_int8_t);
|
||||
static __inline__ void mlx_make_type4(struct mlx_ccb *, u_int8_t, u_int16_t,
|
||||
static inline void mlx_make_type4(struct mlx_ccb *, u_int8_t, u_int16_t,
|
||||
u_int32_t, u_int32_t, u_int8_t);
|
||||
static __inline__ void mlx_make_type5(struct mlx_ccb *, u_int8_t, u_int8_t,
|
||||
static inline void mlx_make_type5(struct mlx_ccb *, u_int8_t, u_int8_t,
|
||||
u_int8_t, u_int32_t, u_int32_t,
|
||||
u_int8_t);
|
||||
|
||||
static __inline__ u_int8_t mlx_inb(struct mlx_softc *, int);
|
||||
static __inline__ u_int16_t mlx_inw(struct mlx_softc *, int);
|
||||
static __inline__ u_int32_t mlx_inl(struct mlx_softc *, int);
|
||||
static __inline__ void mlx_outb(struct mlx_softc *, int, u_int8_t);
|
||||
static __inline__ void mlx_outw(struct mlx_softc *, int, u_int16_t);
|
||||
static __inline__ void mlx_outl(struct mlx_softc *, int, u_int32_t);
|
||||
static inline u_int8_t mlx_inb(struct mlx_softc *, int);
|
||||
static inline u_int16_t mlx_inw(struct mlx_softc *, int);
|
||||
static inline u_int32_t mlx_inl(struct mlx_softc *, int);
|
||||
static inline void mlx_outb(struct mlx_softc *, int, u_int8_t);
|
||||
static inline void mlx_outw(struct mlx_softc *, int, u_int16_t);
|
||||
static inline void mlx_outl(struct mlx_softc *, int, u_int32_t);
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
mlx_make_type1(struct mlx_ccb *mc, u_int8_t code, u_int16_t f1, u_int32_t f2,
|
||||
u_int8_t f3, u_int32_t f4, u_int8_t f5)
|
||||
{
|
||||
@ -236,7 +236,7 @@ mlx_make_type1(struct mlx_ccb *mc, u_int8_t code, u_int16_t f1, u_int32_t f2,
|
||||
mc->mc_mbox[0xc] = f5;
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
mlx_make_type2(struct mlx_ccb *mc, u_int8_t code, u_int8_t f1, u_int8_t f2,
|
||||
u_int8_t f3, u_int8_t f4, u_int8_t f5, u_int8_t f6,
|
||||
u_int32_t f7, u_int8_t f8)
|
||||
@ -256,7 +256,7 @@ mlx_make_type2(struct mlx_ccb *mc, u_int8_t code, u_int8_t f1, u_int8_t f2,
|
||||
mc->mc_mbox[0xc] = f8;
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
mlx_make_type3(struct mlx_ccb *mc, u_int8_t code, u_int8_t f1, u_int8_t f2,
|
||||
u_int16_t f3, u_int8_t f4, u_int8_t f5, u_int32_t f6,
|
||||
u_int8_t f7)
|
||||
@ -276,7 +276,7 @@ mlx_make_type3(struct mlx_ccb *mc, u_int8_t code, u_int8_t f1, u_int8_t f2,
|
||||
mc->mc_mbox[0xc] = f7;
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
mlx_make_type4(struct mlx_ccb *mc, u_int8_t code, u_int16_t f1, u_int32_t f2,
|
||||
u_int32_t f3, u_int8_t f4)
|
||||
{
|
||||
@ -295,7 +295,7 @@ mlx_make_type4(struct mlx_ccb *mc, u_int8_t code, u_int16_t f1, u_int32_t f2,
|
||||
mc->mc_mbox[0xc] = f4;
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
mlx_make_type5(struct mlx_ccb *mc, u_int8_t code, u_int8_t f1, u_int8_t f2,
|
||||
u_int32_t f3, u_int32_t f4, u_int8_t f5)
|
||||
{
|
||||
@ -314,7 +314,7 @@ mlx_make_type5(struct mlx_ccb *mc, u_int8_t code, u_int8_t f1, u_int8_t f2,
|
||||
mc->mc_mbox[0xc] = f5;
|
||||
}
|
||||
|
||||
static __inline__ u_int8_t
|
||||
static inline u_int8_t
|
||||
mlx_inb(struct mlx_softc *mlx, int off)
|
||||
{
|
||||
|
||||
@ -323,7 +323,7 @@ mlx_inb(struct mlx_softc *mlx, int off)
|
||||
return (bus_space_read_1(mlx->mlx_iot, mlx->mlx_ioh, off));
|
||||
}
|
||||
|
||||
static __inline__ u_int16_t
|
||||
static inline u_int16_t
|
||||
mlx_inw(struct mlx_softc *mlx, int off)
|
||||
{
|
||||
|
||||
@ -332,7 +332,7 @@ mlx_inw(struct mlx_softc *mlx, int off)
|
||||
return (bus_space_read_2(mlx->mlx_iot, mlx->mlx_ioh, off));
|
||||
}
|
||||
|
||||
static __inline__ u_int32_t
|
||||
static inline u_int32_t
|
||||
mlx_inl(struct mlx_softc *mlx, int off)
|
||||
{
|
||||
|
||||
@ -341,7 +341,7 @@ mlx_inl(struct mlx_softc *mlx, int off)
|
||||
return (bus_space_read_4(mlx->mlx_iot, mlx->mlx_ioh, off));
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
mlx_outb(struct mlx_softc *mlx, int off, u_int8_t val)
|
||||
{
|
||||
|
||||
@ -350,7 +350,7 @@ mlx_outb(struct mlx_softc *mlx, int off, u_int8_t val)
|
||||
BUS_SPACE_BARRIER_WRITE);
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
mlx_outw(struct mlx_softc *mlx, int off, u_int16_t val)
|
||||
{
|
||||
|
||||
@ -359,7 +359,7 @@ mlx_outw(struct mlx_softc *mlx, int off, u_int16_t val)
|
||||
BUS_SPACE_BARRIER_WRITE);
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
mlx_outl(struct mlx_softc *mlx, int off, u_int32_t val)
|
||||
{
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ncr53c9x.c,v 1.117 2005/12/11 12:21:28 christos Exp $ */
|
||||
/* $NetBSD: ncr53c9x.c,v 1.118 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.117 2005/12/11 12:21:28 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.118 2005/12/24 23:41:33 perry Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -543,7 +543,7 @@ ncr53c9x_init(sc, doreset)
|
||||
* only make sense when he DMA CSR has an interrupt showing. Call only
|
||||
* if an interrupt is pending.
|
||||
*/
|
||||
__inline__ void
|
||||
inline void
|
||||
ncr53c9x_readregs(sc)
|
||||
struct ncr53c9x_softc *sc;
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: siop.c,v 1.79 2005/11/18 23:10:32 bouyer Exp $ */
|
||||
/* $NetBSD: siop.c,v 1.80 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Manuel Bouyer.
|
||||
@ -33,7 +33,7 @@
|
||||
/* SYM53c7/8xx PCI-SCSI I/O Processors driver */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: siop.c,v 1.79 2005/11/18 23:10:32 bouyer Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: siop.c,v 1.80 2005/12/24 23:41:33 perry Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -114,8 +114,8 @@ void siop_printstats(void);
|
||||
#define INCSTAT(x)
|
||||
#endif
|
||||
|
||||
static __inline__ void siop_script_sync(struct siop_softc *, int);
|
||||
static __inline__ void
|
||||
static inline void siop_script_sync(struct siop_softc *, int);
|
||||
static inline void
|
||||
siop_script_sync(sc, ops)
|
||||
struct siop_softc *sc;
|
||||
int ops;
|
||||
@ -125,8 +125,8 @@ siop_script_sync(sc, ops)
|
||||
PAGE_SIZE, ops);
|
||||
}
|
||||
|
||||
static __inline__ u_int32_t siop_script_read(struct siop_softc *, u_int);
|
||||
static __inline__ u_int32_t
|
||||
static inline u_int32_t siop_script_read(struct siop_softc *, u_int);
|
||||
static inline u_int32_t
|
||||
siop_script_read(sc, offset)
|
||||
struct siop_softc *sc;
|
||||
u_int offset;
|
||||
@ -139,9 +139,9 @@ siop_script_read(sc, offset)
|
||||
}
|
||||
}
|
||||
|
||||
static __inline__ void siop_script_write(struct siop_softc *, u_int,
|
||||
static inline void siop_script_write(struct siop_softc *, u_int,
|
||||
u_int32_t);
|
||||
static __inline__ void
|
||||
static inline void
|
||||
siop_script_write(sc, offset, val)
|
||||
struct siop_softc *sc;
|
||||
u_int offset;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: siopvar.h,v 1.22 2005/11/18 23:10:32 bouyer Exp $ */
|
||||
/* $NetBSD: siopvar.h,v 1.23 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Manuel Bouyer.
|
||||
@ -98,8 +98,8 @@ struct siop_lunsw {
|
||||
u_int32_t lunsw_size; /* size of this lun sw */
|
||||
};
|
||||
|
||||
static __inline__ void siop_table_sync(struct siop_cmd *, int);
|
||||
static __inline__ void
|
||||
static inline void siop_table_sync(struct siop_cmd *, int);
|
||||
static inline void
|
||||
siop_table_sync(siop_cmd, ops)
|
||||
struct siop_cmd *siop_cmd;
|
||||
int ops;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tcic2var.h,v 1.6 2005/12/11 12:21:28 christos Exp $ */
|
||||
/* $NetBSD: tcic2var.h,v 1.7 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998, 1999 Christoph Badura. All rights reserved.
|
||||
@ -148,20 +148,20 @@ void tcic_attach(struct tcic_softc *);
|
||||
void tcic_attach_sockets(struct tcic_softc *);
|
||||
int tcic_intr(void *arg);
|
||||
|
||||
static __inline__ int tcic_read_1(struct tcic_handle *, int);
|
||||
static __inline__ int tcic_read_2(struct tcic_handle *, int);
|
||||
static __inline__ int tcic_read_4(struct tcic_handle *, int);
|
||||
static __inline__ void tcic_write_1(struct tcic_handle *, int, int);
|
||||
static __inline__ void tcic_write_2(struct tcic_handle *, int, int);
|
||||
static __inline__ void tcic_write_4(struct tcic_handle *, int, int);
|
||||
static __inline__ int tcic_read_ind_2(struct tcic_handle *, int);
|
||||
static __inline__ void tcic_write_ind_2(struct tcic_handle *, int, int);
|
||||
static __inline__ void tcic_sel_sock(struct tcic_handle *);
|
||||
static __inline__ void tcic_wait_ready(struct tcic_handle *);
|
||||
static __inline__ int tcic_read_aux_1(bus_space_tag_t, bus_space_handle_t, int, int);
|
||||
static __inline__ int tcic_read_aux_2(bus_space_tag_t, bus_space_handle_t, int);
|
||||
static __inline__ void tcic_write_aux_1(bus_space_tag_t, bus_space_handle_t, int, int, int);
|
||||
static __inline__ void tcic_write_aux_2(bus_space_tag_t, bus_space_handle_t, int, int);
|
||||
static inline int tcic_read_1(struct tcic_handle *, int);
|
||||
static inline int tcic_read_2(struct tcic_handle *, int);
|
||||
static inline int tcic_read_4(struct tcic_handle *, int);
|
||||
static inline void tcic_write_1(struct tcic_handle *, int, int);
|
||||
static inline void tcic_write_2(struct tcic_handle *, int, int);
|
||||
static inline void tcic_write_4(struct tcic_handle *, int, int);
|
||||
static inline int tcic_read_ind_2(struct tcic_handle *, int);
|
||||
static inline void tcic_write_ind_2(struct tcic_handle *, int, int);
|
||||
static inline void tcic_sel_sock(struct tcic_handle *);
|
||||
static inline void tcic_wait_ready(struct tcic_handle *);
|
||||
static inline int tcic_read_aux_1(bus_space_tag_t, bus_space_handle_t, int, int);
|
||||
static inline int tcic_read_aux_2(bus_space_tag_t, bus_space_handle_t, int);
|
||||
static inline void tcic_write_aux_1(bus_space_tag_t, bus_space_handle_t, int, int, int);
|
||||
static inline void tcic_write_aux_2(bus_space_tag_t, bus_space_handle_t, int, int);
|
||||
|
||||
int tcic_chip_mem_alloc(pcmcia_chipset_handle_t, bus_size_t,
|
||||
struct pcmcia_mem_handle *);
|
||||
@ -183,8 +183,8 @@ void tcic_chip_socket_enable(pcmcia_chipset_handle_t);
|
||||
void tcic_chip_socket_disable(pcmcia_chipset_handle_t);
|
||||
void tcic_chip_socket_settype(pcmcia_chipset_handle_t, int);
|
||||
|
||||
static __inline__ int tcic_read_1(struct tcic_handle *, int);
|
||||
static __inline__ int
|
||||
static inline int tcic_read_1(struct tcic_handle *, int);
|
||||
static inline int
|
||||
tcic_read_1(h, reg)
|
||||
struct tcic_handle *h;
|
||||
int reg;
|
||||
@ -192,8 +192,8 @@ tcic_read_1(h, reg)
|
||||
return (bus_space_read_1(h->sc->iot, h->sc->ioh, reg));
|
||||
}
|
||||
|
||||
static __inline__ int tcic_read_2(struct tcic_handle *, int);
|
||||
static __inline__ int
|
||||
static inline int tcic_read_2(struct tcic_handle *, int);
|
||||
static inline int
|
||||
tcic_read_2(h, reg)
|
||||
struct tcic_handle *h;
|
||||
int reg;
|
||||
@ -201,8 +201,8 @@ tcic_read_2(h, reg)
|
||||
return (bus_space_read_2(h->sc->iot, h->sc->ioh, reg));
|
||||
}
|
||||
|
||||
static __inline__ int tcic_read_4(struct tcic_handle *, int);
|
||||
static __inline__ int
|
||||
static inline int tcic_read_4(struct tcic_handle *, int);
|
||||
static inline int
|
||||
tcic_read_4(h, reg)
|
||||
struct tcic_handle *h;
|
||||
int reg;
|
||||
@ -213,8 +213,8 @@ tcic_read_4(h, reg)
|
||||
return val;
|
||||
}
|
||||
|
||||
static __inline__ void tcic_write_1(struct tcic_handle *, int, int);
|
||||
static __inline__ void
|
||||
static inline void tcic_write_1(struct tcic_handle *, int, int);
|
||||
static inline void
|
||||
tcic_write_1(h, reg, data)
|
||||
struct tcic_handle *h;
|
||||
int reg;
|
||||
@ -223,8 +223,8 @@ tcic_write_1(h, reg, data)
|
||||
bus_space_write_1(h->sc->iot, h->sc->ioh, reg, (data));
|
||||
}
|
||||
|
||||
static __inline__ void tcic_write_2(struct tcic_handle *, int, int);
|
||||
static __inline__ void
|
||||
static inline void tcic_write_2(struct tcic_handle *, int, int);
|
||||
static inline void
|
||||
tcic_write_2(h, reg, data)
|
||||
struct tcic_handle *h;
|
||||
int reg;
|
||||
@ -233,8 +233,8 @@ tcic_write_2(h, reg, data)
|
||||
bus_space_write_2(h->sc->iot, h->sc->ioh, reg, (data));
|
||||
}
|
||||
|
||||
static __inline__ void tcic_write_4(struct tcic_handle *, int, int);
|
||||
static __inline__ void
|
||||
static inline void tcic_write_4(struct tcic_handle *, int, int);
|
||||
static inline void
|
||||
tcic_write_4(h, reg, data)
|
||||
struct tcic_handle *h;
|
||||
int reg;
|
||||
@ -244,8 +244,8 @@ tcic_write_4(h, reg, data)
|
||||
bus_space_write_2(h->sc->iot, h->sc->ioh, reg+2, (data)>>16);
|
||||
}
|
||||
|
||||
static __inline__ int tcic_read_ind_2(struct tcic_handle *, int);
|
||||
static __inline__ int
|
||||
static inline int tcic_read_ind_2(struct tcic_handle *, int);
|
||||
static inline int
|
||||
tcic_read_ind_2(h, reg)
|
||||
struct tcic_handle *h;
|
||||
int reg;
|
||||
@ -258,8 +258,8 @@ tcic_read_ind_2(h, reg)
|
||||
return val;
|
||||
}
|
||||
|
||||
static __inline__ void tcic_write_ind_2(struct tcic_handle *, int, int);
|
||||
static __inline__ void
|
||||
static inline void tcic_write_ind_2(struct tcic_handle *, int, int);
|
||||
static inline void
|
||||
tcic_write_ind_2(h, reg, data)
|
||||
struct tcic_handle *h;
|
||||
int reg;
|
||||
@ -272,8 +272,8 @@ tcic_write_ind_2(h, reg, data)
|
||||
tcic_write_4(h, TCIC_R_ADDR, r_addr);
|
||||
}
|
||||
|
||||
static __inline__ void tcic_sel_sock(struct tcic_handle *);
|
||||
static __inline__ void
|
||||
static inline void tcic_sel_sock(struct tcic_handle *);
|
||||
static inline void
|
||||
tcic_sel_sock(h)
|
||||
struct tcic_handle *h;
|
||||
{
|
||||
@ -283,8 +283,8 @@ tcic_sel_sock(h)
|
||||
(h->sock<<TCIC_ADDR2_SS_SHFT)|(r_addr & ~TCIC_ADDR2_SS_MASK));
|
||||
}
|
||||
|
||||
static __inline__ void tcic_wait_ready(struct tcic_handle *);
|
||||
static __inline__ void
|
||||
static inline void tcic_wait_ready(struct tcic_handle *);
|
||||
static inline void
|
||||
tcic_wait_ready(h)
|
||||
struct tcic_handle *h;
|
||||
{
|
||||
@ -302,8 +302,8 @@ tcic_wait_ready(h)
|
||||
#endif
|
||||
}
|
||||
|
||||
static __inline__ int tcic_read_aux_1(bus_space_tag_t, bus_space_handle_t, int, int);
|
||||
static __inline__ int
|
||||
static inline int tcic_read_aux_1(bus_space_tag_t, bus_space_handle_t, int, int);
|
||||
static inline int
|
||||
tcic_read_aux_1(iot, ioh, auxreg, reg)
|
||||
bus_space_tag_t iot;
|
||||
bus_space_handle_t ioh;
|
||||
@ -316,8 +316,8 @@ tcic_read_aux_1(iot, ioh, auxreg, reg)
|
||||
return val;
|
||||
}
|
||||
|
||||
static __inline__ int tcic_read_aux_2(bus_space_tag_t, bus_space_handle_t, int);
|
||||
static __inline__ int
|
||||
static inline int tcic_read_aux_2(bus_space_tag_t, bus_space_handle_t, int);
|
||||
static inline int
|
||||
tcic_read_aux_2(iot, ioh, auxreg)
|
||||
bus_space_tag_t iot;
|
||||
bus_space_handle_t ioh;
|
||||
@ -330,8 +330,8 @@ tcic_read_aux_2(iot, ioh, auxreg)
|
||||
return val;
|
||||
}
|
||||
|
||||
static __inline__ void tcic_write_aux_1(bus_space_tag_t, bus_space_handle_t, int, int, int);
|
||||
static __inline__ void
|
||||
static inline void tcic_write_aux_1(bus_space_tag_t, bus_space_handle_t, int, int, int);
|
||||
static inline void
|
||||
tcic_write_aux_1(iot, ioh, auxreg, reg, val)
|
||||
bus_space_tag_t iot;
|
||||
bus_space_handle_t ioh;
|
||||
@ -343,8 +343,8 @@ tcic_write_aux_1(iot, ioh, auxreg, reg, val)
|
||||
bus_space_write_1(iot, ioh, reg, val);
|
||||
}
|
||||
|
||||
static __inline__ void tcic_write_aux_2(bus_space_tag_t, bus_space_handle_t, int, int);
|
||||
static __inline__ void
|
||||
static inline void tcic_write_aux_2(bus_space_tag_t, bus_space_handle_t, int, int);
|
||||
static inline void
|
||||
tcic_write_aux_2(iot, ioh, auxreg, val)
|
||||
bus_space_tag_t iot;
|
||||
bus_space_handle_t ioh;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_ate.c,v 1.43 2005/12/11 12:22:02 christos Exp $ */
|
||||
/* $NetBSD: if_ate.c,v 1.44 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*
|
||||
* All Rights Reserved, Copyright (C) Fujitsu Limited 1995
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ate.c,v 1.43 2005/12/11 12:22:02 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ate.c,v 1.44 2005/12/24 23:41:33 perry Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -71,7 +71,7 @@ struct fe_simple_probe_struct {
|
||||
uint8_t bits; /* Values to be compared against. */
|
||||
};
|
||||
|
||||
static __inline__ int fe_simple_probe(bus_space_tag_t, bus_space_handle_t,
|
||||
static inline int fe_simple_probe(bus_space_tag_t, bus_space_handle_t,
|
||||
struct fe_simple_probe_struct const *);
|
||||
static int ate_find(bus_space_tag_t, bus_space_handle_t, int *, int *);
|
||||
static int ate_detect(bus_space_tag_t, bus_space_handle_t,
|
||||
@ -180,7 +180,7 @@ ate_match(struct device *parent, struct cfdata *match, void *aux)
|
||||
/*
|
||||
* Check for specific bits in specific registers have specific values.
|
||||
*/
|
||||
static __inline__ int
|
||||
static inline int
|
||||
fe_simple_probe(bus_space_tag_t iot, bus_space_handle_t ioh,
|
||||
struct fe_simple_probe_struct const *sp)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_fmv_isa.c,v 1.5 2005/12/11 12:22:02 christos Exp $ */
|
||||
/* $NetBSD: if_fmv_isa.c,v 1.6 2005/12/24 23:41:33 perry Exp $ */
|
||||
|
||||
/*
|
||||
* All Rights Reserved, Copyright (C) Fujitsu Limited 1995
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_fmv_isa.c,v 1.5 2005/12/11 12:22:02 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_fmv_isa.c,v 1.6 2005/12/24 23:41:33 perry Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -71,7 +71,7 @@ struct fe_simple_probe_struct {
|
||||
uint8_t bits; /* Values to be compared against. */
|
||||
};
|
||||
|
||||
static __inline__ int fe_simple_probe(bus_space_tag_t, bus_space_handle_t,
|
||||
static inline int fe_simple_probe(bus_space_tag_t, bus_space_handle_t,
|
||||
struct fe_simple_probe_struct const *);
|
||||
static int fmv_find(bus_space_tag_t, bus_space_handle_t, int *, int *);
|
||||
|
||||
@ -178,7 +178,7 @@ fmv_isa_match(struct device *parent, struct cfdata *match, void *aux)
|
||||
/*
|
||||
* Check for specific bits in specific registers have specific values.
|
||||
*/
|
||||
static __inline__ int
|
||||
static inline int
|
||||
fe_simple_probe(bus_space_tag_t iot, bus_space_handle_t ioh,
|
||||
struct fe_simple_probe_struct const *sp)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_de.c,v 1.117 2005/12/06 18:37:57 christos Exp $ */
|
||||
/* $NetBSD: if_de.c,v 1.118 2005/12/24 23:41:34 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com)
|
||||
@ -37,7 +37,7 @@
|
||||
* board which support 21040, 21041, or 21140 (mostly).
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_de.c,v 1.117 2005/12/06 18:37:57 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_de.c,v 1.118 2005/12/24 23:41:34 perry Exp $");
|
||||
|
||||
#define TULIP_HDR_DATA
|
||||
|
||||
@ -1644,7 +1644,7 @@ tulip_null_media_poll(
|
||||
#endif
|
||||
}
|
||||
|
||||
__inline__ static void
|
||||
inline static void
|
||||
tulip_21140_mediainit(
|
||||
tulip_softc_t * const sc,
|
||||
tulip_media_info_t * const mip,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_devar.h,v 1.42 2005/12/24 23:29:06 perry Exp $ */
|
||||
/* $NetBSD: if_devar.h,v 1.43 2005/12/24 23:41:34 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com)
|
||||
@ -1089,7 +1089,7 @@ extern struct cfdriver de_cd;
|
||||
} while (0)
|
||||
#if defined(__i386__)
|
||||
typedef u_quad_t tulip_cycle_t;
|
||||
static __inline__ tulip_cycle_t
|
||||
static inline tulip_cycle_t
|
||||
TULIP_PERFREAD(
|
||||
void)
|
||||
{
|
||||
@ -1100,7 +1100,7 @@ TULIP_PERFREAD(
|
||||
#define TULIP_PERFDIFF(s, f) ((f) - (s))
|
||||
#elif defined(__alpha__)
|
||||
typedef unsigned long tulip_cycle_t;
|
||||
static __inline__ tulip_cycle_t
|
||||
static inline tulip_cycle_t
|
||||
TULIP_PERFREAD(
|
||||
void)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mlyvar.h,v 1.1 2001/07/30 19:59:07 ad Exp $ */
|
||||
/* $NetBSD: mlyvar.h,v 1.2 2005/12/24 23:41:34 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -232,17 +232,17 @@ struct mly_softc {
|
||||
* Register access helpers.
|
||||
*/
|
||||
|
||||
static __inline__ u_int8_t mly_inb(struct mly_softc *, int);
|
||||
static __inline__ u_int16_t mly_inw(struct mly_softc *, int);
|
||||
static __inline__ u_int32_t mly_inl(struct mly_softc *, int);
|
||||
static __inline__ void mly_outb(struct mly_softc *, int, u_int8_t);
|
||||
static __inline__ void mly_outw(struct mly_softc *, int, u_int16_t);
|
||||
static __inline__ void mly_outl(struct mly_softc *, int, u_int32_t);
|
||||
static __inline__ int mly_idbr_true(struct mly_softc *, u_int8_t);
|
||||
static __inline__ int mly_odbr_true(struct mly_softc *, u_int8_t);
|
||||
static __inline__ int mly_error_valid(struct mly_softc *);
|
||||
static inline u_int8_t mly_inb(struct mly_softc *, int);
|
||||
static inline u_int16_t mly_inw(struct mly_softc *, int);
|
||||
static inline u_int32_t mly_inl(struct mly_softc *, int);
|
||||
static inline void mly_outb(struct mly_softc *, int, u_int8_t);
|
||||
static inline void mly_outw(struct mly_softc *, int, u_int16_t);
|
||||
static inline void mly_outl(struct mly_softc *, int, u_int32_t);
|
||||
static inline int mly_idbr_true(struct mly_softc *, u_int8_t);
|
||||
static inline int mly_odbr_true(struct mly_softc *, u_int8_t);
|
||||
static inline int mly_error_valid(struct mly_softc *);
|
||||
|
||||
static __inline__ u_int8_t
|
||||
static inline u_int8_t
|
||||
mly_inb(struct mly_softc *mly, int off)
|
||||
{
|
||||
|
||||
@ -251,7 +251,7 @@ mly_inb(struct mly_softc *mly, int off)
|
||||
return (bus_space_read_1(mly->mly_iot, mly->mly_ioh, off));
|
||||
}
|
||||
|
||||
static __inline__ u_int16_t
|
||||
static inline u_int16_t
|
||||
mly_inw(struct mly_softc *mly, int off)
|
||||
{
|
||||
|
||||
@ -260,7 +260,7 @@ mly_inw(struct mly_softc *mly, int off)
|
||||
return (bus_space_read_2(mly->mly_iot, mly->mly_ioh, off));
|
||||
}
|
||||
|
||||
static __inline__ u_int32_t
|
||||
static inline u_int32_t
|
||||
mly_inl(struct mly_softc *mly, int off)
|
||||
{
|
||||
|
||||
@ -269,7 +269,7 @@ mly_inl(struct mly_softc *mly, int off)
|
||||
return (bus_space_read_4(mly->mly_iot, mly->mly_ioh, off));
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
mly_outb(struct mly_softc *mly, int off, u_int8_t val)
|
||||
{
|
||||
|
||||
@ -278,7 +278,7 @@ mly_outb(struct mly_softc *mly, int off, u_int8_t val)
|
||||
BUS_SPACE_BARRIER_WRITE);
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
mly_outw(struct mly_softc *mly, int off, u_int16_t val)
|
||||
{
|
||||
|
||||
@ -287,7 +287,7 @@ mly_outw(struct mly_softc *mly, int off, u_int16_t val)
|
||||
BUS_SPACE_BARRIER_WRITE);
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
mly_outl(struct mly_softc *mly, int off, u_int32_t val)
|
||||
{
|
||||
|
||||
@ -296,7 +296,7 @@ mly_outl(struct mly_softc *mly, int off, u_int32_t val)
|
||||
BUS_SPACE_BARRIER_WRITE);
|
||||
}
|
||||
|
||||
static __inline__ int
|
||||
static inline int
|
||||
mly_idbr_true(struct mly_softc *mly, u_int8_t mask)
|
||||
{
|
||||
u_int8_t val;
|
||||
@ -305,14 +305,14 @@ mly_idbr_true(struct mly_softc *mly, u_int8_t mask)
|
||||
return ((val & mask) == mask);
|
||||
}
|
||||
|
||||
static __inline__ int
|
||||
static inline int
|
||||
mly_odbr_true(struct mly_softc *mly, u_int8_t mask)
|
||||
{
|
||||
|
||||
return ((mly_inb(mly, mly->mly_odbr) & mask) == mask);
|
||||
}
|
||||
|
||||
static __inline__ int
|
||||
static inline int
|
||||
mly_error_valid(struct mly_softc *mly)
|
||||
{
|
||||
u_int8_t val;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pciide_opti_reg.h,v 1.8 2005/12/11 12:22:50 christos Exp $ */
|
||||
/* $NetBSD: pciide_opti_reg.h,v 1.9 2005/12/24 23:41:34 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
@ -112,7 +112,7 @@
|
||||
* break things in subtle ways if the wdc registers are accessed
|
||||
* by an interrupt routine while this magic sequence is executing.
|
||||
*/
|
||||
static __inline__ u_int8_t __attribute__((__unused__))
|
||||
static inline u_int8_t __attribute__((__unused__))
|
||||
opti_read_config(struct ata_channel *chp, int reg)
|
||||
{
|
||||
struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp);
|
||||
@ -137,7 +137,7 @@ opti_read_config(struct ata_channel *chp, int reg)
|
||||
return rv;
|
||||
}
|
||||
|
||||
static __inline__ void __attribute__((__unused__))
|
||||
static inline void __attribute__((__unused__))
|
||||
opti_write_config(struct ata_channel *chp, int reg, u_int8_t val)
|
||||
{
|
||||
struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: twevar.h,v 1.23 2005/12/11 12:22:51 christos Exp $ */
|
||||
/* $NetBSD: twevar.h,v 1.24 2005/12/24 23:41:34 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
|
||||
@ -139,7 +139,7 @@ int twe_param_get_4(struct twe_softc *, int, int, uint32_t *);
|
||||
void twe_register_callbacks(struct twe_softc *, int,
|
||||
const struct twe_callbacks *);
|
||||
|
||||
static __inline__ size_t twe_get_maxsegs(void) {
|
||||
static inline size_t twe_get_maxsegs(void) {
|
||||
size_t max_segs = ((MAXPHYS + PAGE_SIZE - 1) / PAGE_SIZE) + 1;
|
||||
#ifdef TWE_SG_SIZE
|
||||
if (TWE_SG_SIZE < max_segs)
|
||||
@ -148,7 +148,7 @@ static __inline__ size_t twe_get_maxsegs(void) {
|
||||
return max_segs;
|
||||
}
|
||||
|
||||
static __inline__ size_t twe_get_maxxfer(size_t maxsegs) {
|
||||
static inline size_t twe_get_maxxfer(size_t maxsegs) {
|
||||
return (maxsegs - 1) * PAGE_SIZE;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: be.c,v 1.47 2005/12/11 12:23:44 christos Exp $ */
|
||||
/* $NetBSD: be.c,v 1.48 2005/12/24 23:41:34 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -64,7 +64,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: be.c,v 1.47 2005/12/11 12:23:44 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: be.c,v 1.48 2005/12/24 23:41:34 perry Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_inet.h"
|
||||
@ -494,7 +494,7 @@ beattach(parent, self, aux)
|
||||
* Routine to copy from mbuf chain to transmit buffer in
|
||||
* network buffer memory.
|
||||
*/
|
||||
static __inline__ int
|
||||
static inline int
|
||||
be_put(sc, idx, m)
|
||||
struct be_softc *sc;
|
||||
int idx;
|
||||
@ -526,7 +526,7 @@ be_put(sc, idx, m)
|
||||
* We copy the data into mbufs. When full cluster sized units are present,
|
||||
* we copy into clusters.
|
||||
*/
|
||||
static __inline__ struct mbuf *
|
||||
static inline struct mbuf *
|
||||
be_get(sc, idx, totlen)
|
||||
struct be_softc *sc;
|
||||
int idx, totlen;
|
||||
@ -579,7 +579,7 @@ be_get(sc, idx, totlen)
|
||||
/*
|
||||
* Pass a packet to the higher levels.
|
||||
*/
|
||||
static __inline__ void
|
||||
static inline void
|
||||
be_read(sc, idx, len)
|
||||
struct be_softc *sc;
|
||||
int idx, len;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: qe.c,v 1.37 2005/12/11 12:23:44 christos Exp $ */
|
||||
/* $NetBSD: qe.c,v 1.38 2005/12/24 23:41:34 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -73,7 +73,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: qe.c,v 1.37 2005/12/11 12:23:44 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: qe.c,v 1.38 2005/12/24 23:41:34 perry Exp $");
|
||||
|
||||
#define QEDEBUG
|
||||
|
||||
@ -344,7 +344,7 @@ qeattach(parent, self, aux)
|
||||
* We copy the data into mbufs. When full cluster sized units are present,
|
||||
* we copy into clusters.
|
||||
*/
|
||||
static __inline__ struct mbuf *
|
||||
static inline struct mbuf *
|
||||
qe_get(sc, idx, totlen)
|
||||
struct qe_softc *sc;
|
||||
int idx, totlen;
|
||||
@ -397,7 +397,7 @@ qe_get(sc, idx, totlen)
|
||||
* Routine to copy from mbuf chain to transmit buffer in
|
||||
* network buffer memory.
|
||||
*/
|
||||
__inline__ int
|
||||
inline int
|
||||
qe_put(sc, idx, m)
|
||||
struct qe_softc *sc;
|
||||
int idx;
|
||||
@ -426,7 +426,7 @@ qe_put(sc, idx, m)
|
||||
/*
|
||||
* Pass a packet to the higher levels.
|
||||
*/
|
||||
__inline__ void
|
||||
inline void
|
||||
qe_read(sc, idx, len)
|
||||
struct qe_softc *sc;
|
||||
int idx, len;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: stp4020.c,v 1.46 2005/11/10 21:25:35 martin Exp $ */
|
||||
/* $NetBSD: stp4020.c,v 1.47 2005/12/24 23:41:34 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -41,7 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: stp4020.c,v 1.46 2005/11/10 21:25:35 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: stp4020.c,v 1.47 2005/12/24 23:41:34 perry Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -207,7 +207,7 @@ static struct pcmcia_chip_functions stp4020_functions = {
|
||||
};
|
||||
|
||||
|
||||
static __inline__ int
|
||||
static inline int
|
||||
stp4020_rd_sockctl(h, idx)
|
||||
struct stp4020_socket *h;
|
||||
int idx;
|
||||
@ -216,7 +216,7 @@ stp4020_rd_sockctl(h, idx)
|
||||
return (bus_space_read_2(h->tag, h->regs, o));
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
stp4020_wr_sockctl(h, idx, v)
|
||||
struct stp4020_socket *h;
|
||||
int idx;
|
||||
@ -226,7 +226,7 @@ stp4020_wr_sockctl(h, idx, v)
|
||||
bus_space_write_2(h->tag, h->regs, o, v);
|
||||
}
|
||||
|
||||
static __inline__ int
|
||||
static inline int
|
||||
stp4020_rd_winctl(h, win, idx)
|
||||
struct stp4020_socket *h;
|
||||
int win;
|
||||
@ -237,7 +237,7 @@ stp4020_rd_winctl(h, win, idx)
|
||||
return (bus_space_read_2(h->tag, h->regs, o));
|
||||
}
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
stp4020_wr_winctl(h, win, idx, v)
|
||||
struct stp4020_socket *h;
|
||||
int win;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uhci.c,v 1.191 2005/12/11 12:24:01 christos Exp $ */
|
||||
/* $NetBSD: uhci.c,v 1.192 2005/12/24 23:41:34 perry 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.191 2005/12/11 12:24:01 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.192 2005/12/24 23:41:34 perry Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -261,7 +261,7 @@ Static usbd_status uhci_device_setintr(uhci_softc_t *sc,
|
||||
Static void uhci_device_clear_toggle(usbd_pipe_handle pipe);
|
||||
Static void uhci_noop(usbd_pipe_handle pipe);
|
||||
|
||||
Static __inline__ uhci_soft_qh_t *uhci_find_prev_qh(uhci_soft_qh_t *,
|
||||
Static inline uhci_soft_qh_t *uhci_find_prev_qh(uhci_soft_qh_t *,
|
||||
uhci_soft_qh_t *);
|
||||
|
||||
#ifdef UHCI_DEBUG
|
||||
@ -372,7 +372,7 @@ struct usbd_pipe_methods uhci_device_isoc_methods = {
|
||||
} while (0)
|
||||
#define uhci_active_intr_info(ii) ((ii)->list.le_prev != NULL)
|
||||
|
||||
Static __inline__ uhci_soft_qh_t *
|
||||
Static inline uhci_soft_qh_t *
|
||||
uhci_find_prev_qh(uhci_soft_qh_t *pqh, uhci_soft_qh_t *sqh)
|
||||
{
|
||||
DPRINTFN(15,("uhci_find_prev_qh: pqh=%p sqh=%p\n", pqh, sqh));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: wsfont.c,v 1.39 2005/12/11 12:24:12 christos Exp $ */
|
||||
/* $NetBSD: wsfont.c,v 1.40 2005/12/24 23:41:34 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000, 2001, 2002 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: wsfont.c,v 1.39 2005/12/11 12:24:12 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: wsfont.c,v 1.40 2005/12/24 23:41:34 perry Exp $");
|
||||
|
||||
#include "opt_wsfont.h"
|
||||
|
||||
@ -238,9 +238,9 @@ static struct font *wsfont_find0(int, int);
|
||||
static struct font *wsfont_add0(struct wsdisplay_font *, int);
|
||||
static void wsfont_revbit(struct wsdisplay_font *);
|
||||
static void wsfont_revbyte(struct wsdisplay_font *);
|
||||
static int __inline__ wsfont_make_cookie(int, int, int);
|
||||
static int inline wsfont_make_cookie(int, int, int);
|
||||
|
||||
static int __inline__
|
||||
static int inline
|
||||
wsfont_make_cookie(int cident, int bito, int byteo)
|
||||
{
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ucred.h,v 1.24 2005/12/11 12:25:21 christos Exp $ */
|
||||
/* $NetBSD: ucred.h,v 1.25 2005/12/24 23:41:34 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -63,7 +63,7 @@ struct ucred {
|
||||
#define FSCRED ((struct ucred *)-2) /* filesystem credential */
|
||||
|
||||
#ifdef _KERNEL
|
||||
static __inline__ void crhold(struct ucred *cr)
|
||||
static inline void crhold(struct ucred *cr)
|
||||
{
|
||||
simple_lock(&cr->cr_lock);
|
||||
cr->cr_ref++;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ext2fs_dir.h,v 1.11 2005/12/11 12:25:25 christos Exp $ */
|
||||
/* $NetBSD: ext2fs_dir.h,v 1.12 2005/12/24 23:41:34 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
@ -131,9 +131,9 @@ struct ext2fs_direct {
|
||||
|
||||
#define E2IFTODT(mode) (((mode) & 0170000) >> 12)
|
||||
|
||||
static __inline__ u_int8_t inot2ext2dt(u_int16_t)
|
||||
static inline u_int8_t inot2ext2dt(u_int16_t)
|
||||
__attribute__((__unused__));
|
||||
static __inline__ u_int8_t
|
||||
static inline u_int8_t
|
||||
inot2ext2dt(type)
|
||||
u_int16_t type;
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_glue.c,v 1.91 2005/12/11 12:25:29 christos Exp $ */
|
||||
/* $NetBSD: uvm_glue.c,v 1.92 2005/12/24 23:41:34 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Charles D. Cranor and Washington University.
|
||||
@ -67,7 +67,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.91 2005/12/11 12:25:29 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.92 2005/12/24 23:41:34 perry Exp $");
|
||||
|
||||
#include "opt_kgdb.h"
|
||||
#include "opt_kstack.h"
|
||||
@ -310,7 +310,7 @@ uvm_uarea_alloc(vaddr_t *uaddrp)
|
||||
* uvm_uarea_free: free a u-area; never blocks
|
||||
*/
|
||||
|
||||
static __inline__ void
|
||||
static inline void
|
||||
uvm_uarea_free(vaddr_t uaddr)
|
||||
{
|
||||
simple_lock(&uvm_uareas_slock);
|
||||
|
Loading…
Reference in New Issue
Block a user