This commit is contained in:
uwe 2006-03-04 03:39:02 +00:00
parent 5ed1df536e
commit 8ea3cb44c6
11 changed files with 493 additions and 493 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.h,v 1.43 2006/03/04 02:56:21 uwe Exp $ */
/* $NetBSD: autoconf.h,v 1.44 2006/03/04 03:39:02 uwe Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -148,7 +148,7 @@ union obio_attach_args {
#define OBIO_BUS_MAP_USE_ROM BUS_SPACE_MAP_BUS1
/* obio bus helper that finds ROM mappings; exported for autoconf.c */
int obio_find_rom_map __P((bus_addr_t, int, bus_space_handle_t *));
int obio_find_rom_map(bus_addr_t, int, bus_space_handle_t *);
/*
@ -159,13 +159,13 @@ int obio_find_rom_map __P((bus_addr_t, int, bus_space_handle_t *));
*/
struct device;
struct cfdata;
int matchbyname __P((struct device *, struct cfdata *cf, void *aux));
int matchbyname(struct device *, struct cfdata *cf, void *aux);
/*
* `clockfreq' produces a printable representation of a clock frequency
* (this is just a frill).
*/
char *clockfreq __P((int freq));
char *clockfreq(int freq);
/* Openprom V2 style boot path */
struct bootpath {
@ -175,12 +175,12 @@ struct bootpath {
};
/* Parse a disk string into a dev_t, return device struct pointer */
struct device *parsedisk __P((char *, int, int, dev_t *));
struct device *parsedisk(char *, int, int, dev_t *);
/* Establish a mountroot_hook, for benefit of floppy drive, mostly. */
void mountroot_hook_establish __P((void (*) __P((struct device *)),
struct device *));
void mountroot_hook_establish(void (*)(struct device *),
struct device *);
void bootstrap __P((void));
struct device *getdevunit __P((const char *, int));
int romgetcursoraddr __P((int **, int **));
void bootstrap(void);
struct device *getdevunit(const char *, int);
int romgetcursoraddr(int **, int **);

View File

@ -1,4 +1,4 @@
/* $NetBSD: bootinfo.h,v 1.4 2005/12/11 12:19:05 christos Exp $ */
/* $NetBSD: bootinfo.h,v 1.5 2006/03/04 03:39:02 uwe Exp $ */
/*
* Copyright (c) 1997
@ -61,5 +61,5 @@ struct btinfo_kernelfile {
};
#ifdef _KERNEL
void *lookup_bootinfo __P((int));
void *lookup_bootinfo(int);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: bus.h,v 1.50 2006/03/04 02:56:21 uwe Exp $ */
/* $NetBSD: bus.h,v 1.51 2006/03/04 03:39:02 uwe Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@ -105,90 +105,90 @@ struct sparc_bus_space_tag {
struct openprom_range *ranges;
int nranges;
int (*sparc_bus_map) __P((
int (*sparc_bus_map)(
bus_space_tag_t,
bus_addr_t,
bus_size_t,
int, /*flags*/
vaddr_t, /*preferred vaddr*/
bus_space_handle_t *));
int (*sparc_bus_unmap) __P((
bus_space_handle_t *);
int (*sparc_bus_unmap)(
bus_space_tag_t,
bus_space_handle_t,
bus_size_t));
int (*sparc_bus_subregion) __P((
bus_size_t);
int (*sparc_bus_subregion)(
bus_space_tag_t,
bus_space_handle_t,
bus_size_t, /*offset*/
bus_size_t, /*size*/
bus_space_handle_t *));
bus_space_handle_t *);
void (*sparc_bus_barrier) __P((
void (*sparc_bus_barrier)(
bus_space_tag_t,
bus_space_handle_t,
bus_size_t, /*offset*/
bus_size_t, /*size*/
int)); /*flags*/
int); /*flags*/
paddr_t (*sparc_bus_mmap) __P((
paddr_t (*sparc_bus_mmap)(
bus_space_tag_t,
bus_addr_t,
off_t,
int, /*prot*/
int)); /*flags*/
int); /*flags*/
void *(*sparc_intr_establish) __P((
void *(*sparc_intr_establish)(
bus_space_tag_t,
int, /*bus-specific intr*/
int, /*device class level,
see machine/intr.h*/
int (*) __P((void *)), /*handler*/
int (*)(void *), /*handler*/
void *, /*handler arg*/
void (*)(void))); /*optional fast vector*/
void (*)(void)); /*optional fast vector*/
uint8_t (*sparc_read_1) __P((
uint8_t (*sparc_read_1)(
bus_space_tag_t space,
bus_space_handle_t handle,
bus_size_t offset));
bus_size_t offset);
uint16_t (*sparc_read_2) __P((
uint16_t (*sparc_read_2)(
bus_space_tag_t space,
bus_space_handle_t handle,
bus_size_t offset));
bus_size_t offset);
uint32_t (*sparc_read_4) __P((
uint32_t (*sparc_read_4)(
bus_space_tag_t space,
bus_space_handle_t handle,
bus_size_t offset));
bus_size_t offset);
uint64_t (*sparc_read_8) __P((
uint64_t (*sparc_read_8)(
bus_space_tag_t space,
bus_space_handle_t handle,
bus_size_t offset));
bus_size_t offset);
void (*sparc_write_1) __P((
void (*sparc_write_1)(
bus_space_tag_t space,
bus_space_handle_t handle,
bus_size_t offset,
uint8_t value));
uint8_t value);
void (*sparc_write_2) __P((
void (*sparc_write_2)(
bus_space_tag_t space,
bus_space_handle_t handle,
bus_size_t offset,
uint16_t value));
uint16_t value);
void (*sparc_write_4) __P((
void (*sparc_write_4)(
bus_space_tag_t space,
bus_space_handle_t handle,
bus_size_t offset,
uint32_t value));
uint32_t value);
void (*sparc_write_8) __P((
void (*sparc_write_8)(
bus_space_tag_t space,
bus_space_handle_t handle,
bus_size_t offset,
uint64_t value));
uint64_t value);
};
bus_space_tag_t bus_space_tag_alloc(bus_space_tag_t, void *);
@ -200,56 +200,56 @@ int bus_space_translate_address_generic(struct openprom_range *,
* In bus_space_map2(), supply a special virtual address only if you
* get it from ../sparc/vaddrs.h.
*/
static int bus_space_map __P((
static int bus_space_map(
bus_space_tag_t,
bus_addr_t,
bus_size_t,
int, /*flags*/
bus_space_handle_t *));
static int bus_space_map2 __P((
bus_space_handle_t *);
static int bus_space_map2(
bus_space_tag_t,
bus_addr_t,
bus_size_t,
int, /*flags*/
vaddr_t, /*preferred vaddr*/
bus_space_handle_t *));
static int bus_space_unmap __P((
bus_space_handle_t *);
static int bus_space_unmap(
bus_space_tag_t,
bus_space_handle_t,
bus_size_t));
static int bus_space_subregion __P((
bus_size_t);
static int bus_space_subregion(
bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
bus_size_t,
bus_space_handle_t *));
static void bus_space_barrier __P((
bus_space_handle_t *);
static void bus_space_barrier(
bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
bus_size_t,
int));
static paddr_t bus_space_mmap __P((
int);
static paddr_t bus_space_mmap(
bus_space_tag_t,
bus_addr_t, /**/
off_t,
int, /*prot*/
int)); /*flags*/
static void *bus_intr_establish __P((
int); /*flags*/
static void *bus_intr_establish(
bus_space_tag_t,
int, /*bus-specific intr*/
int, /*device class level,
see machine/intr.h*/
int (*) __P((void *)), /*handler*/
void *)); /*handler arg*/
static void *bus_intr_establish2 __P((
int (*)(void *), /*handler*/
void *); /*handler arg*/
static void *bus_intr_establish2(
bus_space_tag_t,
int, /*bus-specific intr*/
int, /*device class level,
see machine/intr.h*/
int (*) __P((void *)), /*handler*/
int (*)(void *), /*handler*/
void *, /*handler arg*/
void (*)(void))); /*optional fast vector*/
void (*)(void)); /*optional fast vector*/
static __inline int
@ -311,7 +311,7 @@ bus_intr_establish(t, p, l, h, a)
bus_space_tag_t t;
int p;
int l;
int (*h)__P((void *));
int (*h)(void *);
void *a;
{
return (*t->sparc_intr_establish)(t, p, l, h, a, NULL);
@ -322,9 +322,9 @@ bus_intr_establish2(t, p, l, h, a, v)
bus_space_tag_t t;
int p;
int l;
int (*h)__P((void *));
int (*h)(void *);
void *a;
void (*v)__P((void));
void (*v)(void);
{
return (*t->sparc_intr_establish)(t, p, l, h, a, v);
}
@ -342,12 +342,12 @@ bus_space_barrier(t, h, o, s, f)
#if 0
int bus_space_alloc __P((bus_space_tag_t t, bus_addr_t rstart,
int bus_space_alloc(bus_space_tag_t t, bus_addr_t rstart,
bus_addr_t rend, bus_size_t size, bus_size_t align,
bus_size_t boundary, int flags, bus_addr_t *addrp,
bus_space_handle_t *bshp));
void bus_space_free __P((bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t size));
bus_space_handle_t *bshp);
void bus_space_free(bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t size);
#endif
#define bus_space_vaddr(t, h) ((void)(t), (void *)(h))
@ -372,19 +372,19 @@ void bus_space_free __P((bus_space_tag_t t, bus_space_handle_t bsh,
* the temporary virtual address
* the passed `arg' argument
*/
int bus_space_probe __P((
int bus_space_probe(
bus_space_tag_t,
bus_addr_t,
bus_size_t, /* probe size */
size_t, /* offset */
int, /* flags */
int (*) __P((void *, void *)), /* callback function */
void *)); /* callback arg */
int (*)(void *, void *), /* callback function */
void *); /* callback arg */
/*
* u_intN_t bus_space_read_N __P((bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset));
* u_intN_t bus_space_read_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset);
*
* Read a 1, 2, 4, or 8 byte quantity from bus space
* described by tag/handle/offset.
@ -404,18 +404,18 @@ int bus_space_probe __P((
static uint8_t bus_space_read_1 __P((bus_space_tag_t,
static uint8_t bus_space_read_1(bus_space_tag_t,
bus_space_handle_t,
bus_size_t));
static uint16_t bus_space_read_2 __P((bus_space_tag_t,
bus_size_t);
static uint16_t bus_space_read_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t));
static uint32_t bus_space_read_4 __P((bus_space_tag_t,
bus_size_t);
static uint32_t bus_space_read_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t));
static uint64_t bus_space_read_8 __P((bus_space_tag_t,
bus_size_t);
static uint64_t bus_space_read_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t));
bus_size_t);
static __inline uint8_t
bus_space_read_1(t, h, o)
@ -503,9 +503,9 @@ bus_space_read_8(t, h, o)
/*
* void bus_space_write_N __P((bus_space_tag_t tag,
* void bus_space_write_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* u_intN_t value));
* u_intN_t value);
*
* Write the 1, 2, 4, or 8 byte value `value' to bus space
* described by tag/handle/offset.
@ -529,22 +529,22 @@ bus_space_read_8(t, h, o)
static void bus_space_write_1 __P((bus_space_tag_t,
static void bus_space_write_1(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint8_t));
static void bus_space_write_2 __P((bus_space_tag_t,
const uint8_t);
static void bus_space_write_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint16_t));
static void bus_space_write_4 __P((bus_space_tag_t,
const uint16_t);
static void bus_space_write_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint32_t));
static void bus_space_write_8 __P((bus_space_tag_t,
const uint32_t);
static void bus_space_write_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint64_t));
const uint64_t);
static __inline void
bus_space_write_1(t, h, o, v)
@ -641,37 +641,37 @@ bus_space_write_8(t, h, o, v)
/*
* void bus_space_read_multi_N __P((bus_space_tag_t tag,
* void bus_space_read_multi_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* u_intN_t *addr, bus_size_t count));
* u_intN_t *addr, bus_size_t count);
*
* Read `count' 1, 2, 4, or 8 byte quantities from bus space
* described by tag/handle/offset and copy into buffer provided.
*/
static void bus_space_read_multi_1 __P((bus_space_tag_t,
static void bus_space_read_multi_1(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint8_t *,
bus_size_t));
bus_size_t);
static void bus_space_read_multi_2 __P((bus_space_tag_t,
static void bus_space_read_multi_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint16_t *,
bus_size_t));
bus_size_t);
static void bus_space_read_multi_4 __P((bus_space_tag_t,
static void bus_space_read_multi_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint32_t *,
bus_size_t));
bus_size_t);
static void bus_space_read_multi_8 __P((bus_space_tag_t,
static void bus_space_read_multi_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint64_t *,
bus_size_t));
bus_size_t);
static __inline void
bus_space_read_multi_1(t, h, o, a, c)
@ -719,23 +719,23 @@ bus_space_read_multi_8(t, h, o, a, c)
#define bus_space_read_multi_stream_1 bus_space_read_multi_1
static void bus_space_read_multi_stream_2 __P((bus_space_tag_t,
static void bus_space_read_multi_stream_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint16_t *,
bus_size_t));
bus_size_t);
static void bus_space_read_multi_stream_4 __P((bus_space_tag_t,
static void bus_space_read_multi_stream_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint32_t *,
bus_size_t));
bus_size_t);
static void bus_space_read_multi_stream_8 __P((bus_space_tag_t,
static void bus_space_read_multi_stream_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint64_t *,
bus_size_t));
bus_size_t);
static __inline void
bus_space_read_multi_stream_2(t, h, o, a, c)
@ -771,33 +771,33 @@ bus_space_read_multi_stream_8(t, h, o, a, c)
}
/*
* void bus_space_write_multi_N __P((bus_space_tag_t tag,
* void bus_space_write_multi_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset,
* const u_intN_t *addr, bus_size_t count));
* const u_intN_t *addr, bus_size_t count);
*
* Write `count' 1, 2, 4, or 8 byte quantities from the buffer
* provided to bus space described by tag/handle/offset.
*/
static void bus_space_write_multi_1 __P((bus_space_tag_t,
static void bus_space_write_multi_1(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint8_t *,
bus_size_t));
static void bus_space_write_multi_2 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_write_multi_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint16_t *,
bus_size_t));
static void bus_space_write_multi_4 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_write_multi_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint32_t *,
bus_size_t));
static void bus_space_write_multi_8 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_write_multi_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint64_t *,
bus_size_t));
bus_size_t);
static __inline void
bus_space_write_multi_1(t, h, o, a, c)
bus_space_tag_t t;
@ -844,21 +844,21 @@ bus_space_write_multi_8(t, h, o, a, c)
#define bus_space_write_multi_stream_1 bus_space_write_multi_1
static void bus_space_write_multi_stream_2 __P((bus_space_tag_t,
static void bus_space_write_multi_stream_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint16_t *,
bus_size_t));
static void bus_space_write_multi_stream_4 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_write_multi_stream_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint32_t *,
bus_size_t));
static void bus_space_write_multi_stream_8 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_write_multi_stream_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint64_t *,
bus_size_t));
bus_size_t);
static __inline void
bus_space_write_multi_stream_2(t, h, o, a, c)
@ -895,33 +895,33 @@ bus_space_write_multi_stream_8(t, h, o, a, c)
/*
* void bus_space_set_multi_N __P((bus_space_tag_t tag,
* void bus_space_set_multi_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t offset, u_intN_t val,
* bus_size_t count));
* bus_size_t count);
*
* Write the 1, 2, 4, or 8 byte value `val' to bus space described
* by tag/handle/offset `count' times.
*/
static void bus_space_set_multi_1 __P((bus_space_tag_t,
static void bus_space_set_multi_1(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint8_t,
bus_size_t));
static void bus_space_set_multi_2 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_set_multi_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint16_t,
bus_size_t));
static void bus_space_set_multi_4 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_set_multi_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint32_t,
bus_size_t));
static void bus_space_set_multi_8 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_set_multi_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint64_t,
bus_size_t));
bus_size_t);
static __inline void
bus_space_set_multi_1(t, h, o, v, c)
@ -969,31 +969,31 @@ bus_space_set_multi_8(t, h, o, v, c)
/*
* void bus_space_read_region_N __P((bus_space_tag_t tag,
* void bus_space_read_region_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t off,
* u_intN_t *addr, bus_size_t count));
* u_intN_t *addr, bus_size_t count);
*
*/
static void bus_space_read_region_1 __P((bus_space_tag_t,
static void bus_space_read_region_1(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint8_t *,
bus_size_t));
static void bus_space_read_region_2 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_read_region_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint16_t *,
bus_size_t));
static void bus_space_read_region_4 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_read_region_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint32_t *,
bus_size_t));
static void bus_space_read_region_8 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_read_region_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint64_t *,
bus_size_t));
bus_size_t);
static __inline void
bus_space_read_region_1(t, h, o, a, c)
@ -1040,31 +1040,31 @@ bus_space_read_region_8(t, h, o, a, c)
}
/*
* void bus_space_write_region_N __P((bus_space_tag_t tag,
* void bus_space_write_region_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t off,
* u_intN_t *addr, bus_size_t count));
* u_intN_t *addr, bus_size_t count);
*
*/
static void bus_space_write_region_1 __P((bus_space_tag_t,
static void bus_space_write_region_1(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint8_t *,
bus_size_t));
static void bus_space_write_region_2 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_write_region_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint16_t *,
bus_size_t));
static void bus_space_write_region_4 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_write_region_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint32_t *,
bus_size_t));
static void bus_space_write_region_8 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_write_region_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint64_t *,
bus_size_t));
bus_size_t);
static __inline void
bus_space_write_region_1(t, h, o, a, c)
bus_space_tag_t t;
@ -1111,31 +1111,31 @@ bus_space_write_region_8(t, h, o, a, c)
/*
* void bus_space_set_region_N __P((bus_space_tag_t tag,
* void bus_space_set_region_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t off,
* u_intN_t *addr, bus_size_t count));
* u_intN_t *addr, bus_size_t count);
*
*/
static void bus_space_set_region_1 __P((bus_space_tag_t,
static void bus_space_set_region_1(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint8_t,
bus_size_t));
static void bus_space_set_region_2 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_set_region_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint16_t,
bus_size_t));
static void bus_space_set_region_4 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_set_region_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint32_t,
bus_size_t));
static void bus_space_set_region_8 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_set_region_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint64_t,
bus_size_t));
bus_size_t);
static __inline void
bus_space_set_region_1(t, h, o, v, c)
@ -1183,38 +1183,38 @@ bus_space_set_region_8(t, h, o, v, c)
/*
* void bus_space_copy_region_N __P((bus_space_tag_t tag,
* void bus_space_copy_region_N(bus_space_tag_t tag,
* bus_space_handle_t bsh1, bus_size_t off1,
* bus_space_handle_t bsh2, bus_size_t off2,
* bus_size_t count));
* bus_size_t count);
*
* Copy `count' 1, 2, 4, or 8 byte values from bus space starting
* at tag/bsh1/off1 to bus space starting at tag/bsh2/off2.
*/
static void bus_space_copy_region_1 __P((bus_space_tag_t,
static void bus_space_copy_region_1(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
bus_space_handle_t,
bus_size_t,
bus_size_t));
static void bus_space_copy_region_2 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_copy_region_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
bus_space_handle_t,
bus_size_t,
bus_size_t));
static void bus_space_copy_region_4 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_copy_region_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
bus_space_handle_t,
bus_size_t,
bus_size_t));
static void bus_space_copy_region_8 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_copy_region_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
bus_space_handle_t,
bus_size_t,
bus_size_t));
bus_size_t);
static __inline void
@ -1262,31 +1262,31 @@ bus_space_copy_region_8(t, h1, o1, h2, o2, c)
}
/*
* void bus_space_read_region_stream_N __P((bus_space_tag_t tag,
* void bus_space_read_region_stream_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t off,
* u_intN_t *addr, bus_size_t count));
* u_intN_t *addr, bus_size_t count);
*
*/
static void bus_space_read_region_stream_1 __P((bus_space_tag_t,
static void bus_space_read_region_stream_1(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint8_t *,
bus_size_t));
static void bus_space_read_region_stream_2 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_read_region_stream_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint16_t *,
bus_size_t));
static void bus_space_read_region_stream_4 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_read_region_stream_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint32_t *,
bus_size_t));
static void bus_space_read_region_stream_8 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_read_region_stream_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
uint64_t *,
bus_size_t));
bus_size_t);
static __inline void
bus_space_read_region_stream_1(t, h, o, a, c)
@ -1330,31 +1330,31 @@ bus_space_read_region_stream_8(t, h, o, a, c)
}
/*
* void bus_space_write_region_stream_N __P((bus_space_tag_t tag,
* void bus_space_write_region_stream_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t off,
* u_intN_t *addr, bus_size_t count));
* u_intN_t *addr, bus_size_t count);
*
*/
static void bus_space_write_region_stream_1 __P((bus_space_tag_t,
static void bus_space_write_region_stream_1(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint8_t *,
bus_size_t));
static void bus_space_write_region_stream_2 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_write_region_stream_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint16_t *,
bus_size_t));
static void bus_space_write_region_stream_4 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_write_region_stream_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint32_t *,
bus_size_t));
static void bus_space_write_region_stream_8 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_write_region_stream_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint64_t *,
bus_size_t));
bus_size_t);
static __inline void
bus_space_write_region_stream_1(t, h, o, a, c)
bus_space_tag_t t;
@ -1401,31 +1401,31 @@ bus_space_write_region_stream_8(t, h, o, a, c)
/*
* void bus_space_set_region_stream_N __P((bus_space_tag_t tag,
* void bus_space_set_region_stream_N(bus_space_tag_t tag,
* bus_space_handle_t bsh, bus_size_t off,
* u_intN_t *addr, bus_size_t count));
* u_intN_t *addr, bus_size_t count);
*
*/
static void bus_space_set_region_stream_1 __P((bus_space_tag_t,
static void bus_space_set_region_stream_1(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint8_t,
bus_size_t));
static void bus_space_set_region_stream_2 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_set_region_stream_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint16_t,
bus_size_t));
static void bus_space_set_region_stream_4 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_set_region_stream_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint32_t,
bus_size_t));
static void bus_space_set_region_stream_8 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_set_region_stream_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
const uint64_t,
bus_size_t));
bus_size_t);
static __inline void
bus_space_set_region_stream_1(t, h, o, v, c)
@ -1473,39 +1473,38 @@ bus_space_set_region_stream_8(t, h, o, v, c)
/*
* void bus_space_copy_region_stream_N __P((bus_space_tag_t tag,
* void bus_space_copy_region_stream_N(bus_space_tag_t tag,
* bus_space_handle_t bsh1, bus_size_t off1,
* bus_space_handle_t bsh2, bus_size_t off2,
* bus_size_t count));
* bus_size_t count);
*
* Copy `count' 1, 2, 4, or 8 byte values from bus space starting
* at tag/bsh1/off1 to bus space starting at tag/bsh2/off2.
*/
static void bus_space_copy_region_stream_1 __P((bus_space_tag_t,
static void bus_space_copy_region_stream_1(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
bus_space_handle_t,
bus_size_t,
bus_size_t));
static void bus_space_copy_region_stream_2 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_copy_region_stream_2(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
bus_space_handle_t,
bus_size_t,
bus_size_t));
static void bus_space_copy_region_stream_4 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_copy_region_stream_4(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
bus_space_handle_t,
bus_size_t,
bus_size_t));
static void bus_space_copy_region_stream_8 __P((bus_space_tag_t,
bus_size_t);
static void bus_space_copy_region_stream_8(bus_space_tag_t,
bus_space_handle_t,
bus_size_t,
bus_space_handle_t,
bus_size_t,
bus_size_t));
bus_size_t);
static __inline void
bus_space_copy_region_stream_1(t, h1, o1, h2, o2, c)
@ -1622,33 +1621,33 @@ struct sparc_bus_dma_tag {
/*
* DMA mapping methods.
*/
int (*_dmamap_create) __P((bus_dma_tag_t, bus_size_t, int,
bus_size_t, bus_size_t, int, bus_dmamap_t *));
void (*_dmamap_destroy) __P((bus_dma_tag_t, bus_dmamap_t));
int (*_dmamap_load) __P((bus_dma_tag_t, bus_dmamap_t, void *,
bus_size_t, struct proc *, int));
int (*_dmamap_load_mbuf) __P((bus_dma_tag_t, bus_dmamap_t,
struct mbuf *, int));
int (*_dmamap_load_uio) __P((bus_dma_tag_t, bus_dmamap_t,
struct uio *, int));
int (*_dmamap_load_raw) __P((bus_dma_tag_t, bus_dmamap_t,
bus_dma_segment_t *, int, bus_size_t, int));
void (*_dmamap_unload) __P((bus_dma_tag_t, bus_dmamap_t));
void (*_dmamap_sync) __P((bus_dma_tag_t, bus_dmamap_t,
bus_addr_t, bus_size_t, int));
int (*_dmamap_create)(bus_dma_tag_t, bus_size_t, int,
bus_size_t, bus_size_t, int, bus_dmamap_t *);
void (*_dmamap_destroy)(bus_dma_tag_t, bus_dmamap_t);
int (*_dmamap_load)(bus_dma_tag_t, bus_dmamap_t, void *,
bus_size_t, struct proc *, int);
int (*_dmamap_load_mbuf)(bus_dma_tag_t, bus_dmamap_t,
struct mbuf *, int);
int (*_dmamap_load_uio)(bus_dma_tag_t, bus_dmamap_t,
struct uio *, int);
int (*_dmamap_load_raw)(bus_dma_tag_t, bus_dmamap_t,
bus_dma_segment_t *, int, bus_size_t, int);
void (*_dmamap_unload)(bus_dma_tag_t, bus_dmamap_t);
void (*_dmamap_sync)(bus_dma_tag_t, bus_dmamap_t,
bus_addr_t, bus_size_t, int);
/*
* DMA memory utility functions.
*/
int (*_dmamem_alloc) __P((bus_dma_tag_t, bus_size_t, bus_size_t,
bus_size_t, bus_dma_segment_t *, int, int *, int));
void (*_dmamem_free) __P((bus_dma_tag_t,
bus_dma_segment_t *, int));
int (*_dmamem_map) __P((bus_dma_tag_t, bus_dma_segment_t *,
int, size_t, caddr_t *, int));
void (*_dmamem_unmap) __P((bus_dma_tag_t, caddr_t, size_t));
paddr_t (*_dmamem_mmap) __P((bus_dma_tag_t, bus_dma_segment_t *,
int, off_t, int, int));
int (*_dmamem_alloc)(bus_dma_tag_t, bus_size_t, bus_size_t,
bus_size_t, bus_dma_segment_t *, int, int *, int);
void (*_dmamem_free)(bus_dma_tag_t,
bus_dma_segment_t *, int);
int (*_dmamem_map)(bus_dma_tag_t, bus_dma_segment_t *,
int, size_t, caddr_t *, int);
void (*_dmamem_unmap)(bus_dma_tag_t, caddr_t, size_t);
paddr_t (*_dmamem_mmap)(bus_dma_tag_t, bus_dma_segment_t *,
int, off_t, int, int);
};
#define bus_dmamap_create(t, s, n, m, b, f, p) \
@ -1714,33 +1713,33 @@ struct sparc_bus_dmamap {
};
#ifdef _SPARC_BUS_DMA_PRIVATE
int _bus_dmamap_create __P((bus_dma_tag_t, bus_size_t, int, bus_size_t,
bus_size_t, int, bus_dmamap_t *));
void _bus_dmamap_destroy __P((bus_dma_tag_t, bus_dmamap_t));
int _bus_dmamap_load_mbuf __P((bus_dma_tag_t, bus_dmamap_t,
struct mbuf *, int));
int _bus_dmamap_load_uio __P((bus_dma_tag_t, bus_dmamap_t,
struct uio *, int));
int _bus_dmamap_load_raw __P((bus_dma_tag_t, bus_dmamap_t,
bus_dma_segment_t *, int, bus_size_t, int));
void _bus_dmamap_unload __P((bus_dma_tag_t, bus_dmamap_t));
void _bus_dmamap_sync __P((bus_dma_tag_t, bus_dmamap_t, bus_addr_t,
bus_size_t, int));
int _bus_dmamap_create(bus_dma_tag_t, bus_size_t, int, bus_size_t,
bus_size_t, int, bus_dmamap_t *);
void _bus_dmamap_destroy(bus_dma_tag_t, bus_dmamap_t);
int _bus_dmamap_load_mbuf(bus_dma_tag_t, bus_dmamap_t,
struct mbuf *, int);
int _bus_dmamap_load_uio(bus_dma_tag_t, bus_dmamap_t,
struct uio *, int);
int _bus_dmamap_load_raw(bus_dma_tag_t, bus_dmamap_t,
bus_dma_segment_t *, int, bus_size_t, int);
void _bus_dmamap_unload(bus_dma_tag_t, bus_dmamap_t);
void _bus_dmamap_sync(bus_dma_tag_t, bus_dmamap_t, bus_addr_t,
bus_size_t, int);
int _bus_dmamem_alloc __P((bus_dma_tag_t tag, bus_size_t size,
int _bus_dmamem_alloc(bus_dma_tag_t tag, bus_size_t size,
bus_size_t alignment, bus_size_t boundary,
bus_dma_segment_t *segs, int nsegs, int *rsegs, int flags));
void _bus_dmamem_free __P((bus_dma_tag_t tag, bus_dma_segment_t *segs,
int nsegs));
void _bus_dmamem_unmap __P((bus_dma_tag_t tag, caddr_t kva,
size_t size));
paddr_t _bus_dmamem_mmap __P((bus_dma_tag_t tag, bus_dma_segment_t *segs,
int nsegs, off_t off, int prot, int flags));
bus_dma_segment_t *segs, int nsegs, int *rsegs, int flags);
void _bus_dmamem_free(bus_dma_tag_t tag, bus_dma_segment_t *segs,
int nsegs);
void _bus_dmamem_unmap(bus_dma_tag_t tag, caddr_t kva,
size_t size);
paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs,
int nsegs, off_t off, int prot, int flags);
int _bus_dmamem_alloc_range __P((bus_dma_tag_t tag, bus_size_t size,
int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
bus_size_t alignment, bus_size_t boundary,
bus_dma_segment_t *segs, int nsegs, int *rsegs, int flags,
vaddr_t low, vaddr_t high));
vaddr_t low, vaddr_t high);
vaddr_t _bus_dma_valloc_skewed(size_t, u_long, u_long, u_long);
#endif /* _SPARC_BUS_DMA_PRIVATE */

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_machdep.h,v 1.20 2003/04/29 17:06:06 scw Exp $ */
/* $NetBSD: db_machdep.h,v 1.21 2006/03/04 03:39:02 uwe Exp $ */
/*
* Mach Operating System
@ -79,14 +79,14 @@ extern db_regs_t *ddb_regp;
*/
#define SOFTWARE_SSTEP
boolean_t db_inst_trap_return __P((int inst));
boolean_t db_inst_return __P((int inst));
boolean_t db_inst_call __P((int inst));
boolean_t db_inst_branch __P((int inst));
int db_inst_load __P((int inst));
int db_inst_store __P((int inst));
boolean_t db_inst_unconditional_flow_transfer __P((int inst));
db_addr_t db_branch_taken __P((int inst, db_addr_t pc, db_regs_t *regs));
boolean_t db_inst_trap_return(int inst);
boolean_t db_inst_return(int inst);
boolean_t db_inst_call(int inst);
boolean_t db_inst_branch(int inst);
int db_inst_load(int inst);
int db_inst_store(int inst);
boolean_t db_inst_unconditional_flow_transfer(int inst);
db_addr_t db_branch_taken(int inst, db_addr_t pc, db_regs_t *regs);
#define inst_trap_return(ins) db_inst_trap_return(ins)
#define inst_return(ins) db_inst_return(ins)
@ -107,7 +107,7 @@ db_addr_t db_branch_taken __P((int inst, db_addr_t pc, db_regs_t *regs));
#define DB_MACHINE_COMMANDS
int kdb_trap __P((int, struct trapframe *));
int kdb_trap(int, struct trapframe *);
/*
* We use both a.out and elf symbols in DDB.

View File

@ -1,4 +1,4 @@
/* $NetBSD: eeprom.h,v 1.7 2005/12/11 12:19:05 christos Exp $ */
/* $NetBSD: eeprom.h,v 1.8 2006/03/04 03:39:02 uwe Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -52,7 +52,7 @@
#ifdef _KERNEL
extern char *eeprom_va;
int eeprom_uio __P((struct uio *));
int eeprom_uio(struct uio *);
#define DEV_EEPROM 11 /* minor device 11 is eeprom */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.h,v 1.7 2003/06/16 20:01:05 thorpej Exp $ */
/* $NetBSD: intr.h,v 1.8 2006/03/04 03:39:02 uwe Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -72,7 +72,7 @@ softintr_disestablish(void *cookie);
* structure, which is otherwise internal to intr.c.
*/
#if defined(SUN4M) || defined(SUN4D)
extern void raise __P((int, int));
extern void raise(int, int);
#if !(defined(SUN4) || defined(SUN4C))
#define softintr_schedule(cookie) raise(0, *((int *) (cookie)))
#else /* both defined */

View File

@ -1,4 +1,4 @@
/* $NetBSD: lock.h,v 1.22 2005/12/28 19:09:30 perry Exp $ */
/* $NetBSD: lock.h,v 1.23 2006/03/04 03:39:02 uwe Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -65,17 +65,17 @@ static __inline int __ldstub(__cpu_simple_lock_t *addr)
}
#endif /* __lint__ */
static __inline void __cpu_simple_lock_init __P((__cpu_simple_lock_t *))
static __inline void __cpu_simple_lock_init(__cpu_simple_lock_t *)
__attribute__((__unused__));
static __inline int __cpu_simple_lock_try __P((__cpu_simple_lock_t *))
static __inline int __cpu_simple_lock_try(__cpu_simple_lock_t *)
__attribute__((__unused__));
static __inline void __cpu_simple_unlock __P((__cpu_simple_lock_t *))
static __inline void __cpu_simple_unlock(__cpu_simple_lock_t *)
__attribute__((__unused__));
#ifndef __CPU_SIMPLE_LOCK_NOINLINE
static __inline void __cpu_simple_lock __P((__cpu_simple_lock_t *))
static __inline void __cpu_simple_lock(__cpu_simple_lock_t *)
__attribute__((__unused__));
#else
extern void __cpu_simple_lock __P((__cpu_simple_lock_t *));
extern void __cpu_simple_lock(__cpu_simple_lock_t *);
#endif
static __inline void

View File

@ -1,4 +1,4 @@
/* $NetBSD: oldmon.h,v 1.15 2005/12/11 12:19:05 christos Exp $ */
/* $NetBSD: oldmon.h,v 1.16 2006/03/04 03:39:02 uwe Exp $ */
/*
* Copyright (C) 1985 Regents of the University of California
@ -119,15 +119,15 @@ struct saioreq {
*/
struct om_boottable {
char b_devname[2]; /* The name of the device */
int (*b_probe) __P((void)); /* probe() --> -1 or found controller
int (*b_probe)(void); /* probe() --> -1 or found controller
number */
int (*b_boot) __P((void)); /* boot(bp) --> -1 or start address */
int (*b_open)
__P((struct saioreq *));/* open(iobp) --> -1 or 0 */
int (*b_close)
__P((struct saioreq *));/* close(iobp) --> -1 or 0 */
int (*b_strategy)
__P((struct saioreq *, int));/* strategy(iobp,rw) --> -1 or 0 */
int (*b_boot)(void); /* boot(bp) --> -1 or start address */
int (*b_open)(struct saioreq *);
/* open(iobp) --> -1 or 0 */
int (*b_close)(struct saioreq *);
/* close(iobp) --> -1 or 0 */
int (*b_strategy)(struct saioreq *, int);
/* strategy(iobp,rw) --> -1 or 0 */
char *b_desc; /* Printable string describing dev */
struct devinfo *b_devinfo; /* info to configure device. */
};
@ -157,7 +157,7 @@ struct om_bootparam {
*/
struct om_vector {
char *initSp; /* Initial system stack ptr for hardware */
int (*startMon) __P((void));/* Initial PC for hardware */
int (*startMon)(void); /* Initial PC for hardware */
int *diagberr; /* Bus err handler for diags */
/* Monitor and hardware revision and identification */
@ -165,10 +165,10 @@ struct om_vector {
u_long *memorySize; /* Usable memory in bytes */
/* Single-character input and output */
int (*getChar) __P((void)); /* Get char from input source */
void (*putChar) __P((int)); /* Put char to output sink */
int (*mayGet) __P((void)); /* Maybe get char, or -1 */
int (*mayPut) __P((int)); /* Maybe put char, or -1 */
int (*getChar)(void); /* Get char from input source */
void (*putChar)(int); /* Put char to output sink */
int (*mayGet)(void); /* Maybe get char, or -1 */
int (*mayPut)(int); /* Maybe put char, or -1 */
u_char *echo; /* Should getchar echo? */
u_char *inSource; /* Input source selector */
u_char *outSink; /* Output sink selector */
@ -178,8 +178,8 @@ struct om_vector {
#define PROMDEV_TTYB 2 /* in/out to ttyb */
/* Keyboard input (scanned by monitor nmi routine) */
int (*getKey) __P((void)); /* Get next key if one exists */
int (*initGetKey) __P((void));/* Initialize get key */
int (*getKey)(void); /* Get next key if one exists */
int (*initGetKey)(void); /* Initialize get key */
u_int *translation; /* Kbd translation selector */
u_char *keyBid; /* Keyboard ID byte */
int *screen_x; /* V2: Screen x pos (R/O) */
@ -190,37 +190,37 @@ struct om_vector {
char *monId;
/* Frame buffer output and terminal emulation */
int (*fbWriteChar) __P((void));/* Write a character to FB */
int (*fbWriteChar)(void); /* Write a character to FB */
int *fbAddr; /* Address of frame buffer */
char **font; /* Font table for FB */
void (*fbWriteStr) __P((const char *, int));
void (*fbWriteStr)(const char *, int);
/* Quickly write string to FB */
/* Reboot interface routine -- resets and reboots system. */
void (*reBoot) __P((const char *)) /* e.g. reBoot("xy()vmunix") */
void (*reBoot)(const char *) /* e.g. reBoot("xy()vmunix") */
__attribute__((__noreturn__));
/* Line input and parsing */
u_char *lineBuf; /* The line input buffer */
u_char **linePtr; /* Cur pointer into linebuf */
int *lineSize; /* length of line in linebuf */
int (*getLine) __P((void)); /* Get line from user */
u_char (*getNextChar) __P((void));/* Get next char from linebuf */
u_char (*peekNextChar) __P((void));/* Peek at next char */
int (*getLine)(void); /* Get line from user */
u_char (*getNextChar)(void); /* Get next char from linebuf */
u_char (*peekNextChar)(void); /* Peek at next char */
int *fbThere; /* =1 if frame buffer there */
int (*getNum) __P((void)); /* Grab hex num from line */
int (*getNum)(void); /* Grab hex num from line */
/* Print formatted output to current output sink */
int (*printf) __P((void)); /* Similar to "Kernel printf" */
int (*printHex) __P((void));/* Format N digits in hex */
int (*printf)(void); /* Similar to "Kernel printf" */
int (*printHex)(void); /* Format N digits in hex */
/* Led stuff */
u_char *leds; /* RAM copy of LED register */
int (*setLeds) __P((void)); /* Sets LED's and RAM copy */
int (*setLeds)(void); /* Sets LED's and RAM copy */
/* Non-maskable interrupt (nmi) information */
int (*nmiAddr) __P((void)); /* Addr for level 7 vector */
void (*abortEntry) __P((void));/* Entry for keyboard abort */
int (*nmiAddr)(void); /* Addr for level 7 vector */
void (*abortEntry)(void); /* Entry for keyboard abort */
int *nmiClock; /* Counts up in msec */
/* Frame buffer type: see <machine/fbio.h> */
@ -238,12 +238,13 @@ struct om_vector {
long *resetMap; /* pgmap entry for resetaddr */
/* Really struct pgmapent * */
__dead void (*exitToMon) __P((void)) /* Exit from user program */
__dead void (*exitToMon)(void) /* Exit from user program */
__attribute__((noreturn));
u_char **memorybitmap; /* V1: &{0 or &bits} */
void (*setcxsegmap) /* Set seg in any context */
__P((int, caddr_t, int));
void (**vector_cmd) __P((u_long, char *));/* V2: Handler for 'v' cmd */
(int, caddr_t, int);
void (**vector_cmd)(u_long, char *);
/* V2: Handler for 'v' cmd */
u_long *ExpectedTrapSig;
u_long *TrapVectorTable;
int dummy1z;
@ -310,8 +311,8 @@ struct saif {
#if defined(SUN4)
void oldmon_w_trace __P((u_long));
void oldmon_w_cmd __P((u_long, char *));
void oldmon_w_trace(u_long);
void oldmon_w_cmd(u_long, char *);
#endif
#endif /* _MACHINE_OLDMON_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.64 2006/01/13 15:45:56 chs Exp $ */
/* $NetBSD: param.h,v 1.65 2006/03/04 03:39:02 uwe Exp $ */
/*
* Copyright (c) 1992, 1993
@ -166,7 +166,7 @@ extern int nbpg, pgofset, pgshift;
#if defined(_KERNEL) || defined(_STANDALONE)
#ifndef _LOCORE
extern void delay __P((unsigned int));
extern void delay(unsigned int);
#define DELAY(n) delay(n)
#endif /* _LOCORE */

View File

@ -1,4 +1,4 @@
/* $NetBSD: svr4_machdep.h,v 1.11 2005/12/11 12:19:06 christos Exp $ */
/* $NetBSD: svr4_machdep.h,v 1.12 2006/03/04 03:39:02 uwe Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@ -119,6 +119,6 @@ struct svr4_ucontext;
#define svr4_syscall_intern syscall_intern
int svr4_trap __P((int, struct lwp *));
int svr4_trap(int, struct lwp *);
#endif /* !_SPARC_SVR4_MACHDEP_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: z8530var.h,v 1.7 2005/12/11 12:19:06 christos Exp $ */
/* $NetBSD: z8530var.h,v 1.8 2006/03/04 03:39:02 uwe Exp $ */
/*
* Copyright (c) 1992, 1993
@ -70,13 +70,13 @@ struct zsc_softc {
* about the function call overhead where ZS_DELAY does nothing.
*/
u_char zs_read_reg __P((struct zs_chanstate *cs, u_char reg));
u_char zs_read_csr __P((struct zs_chanstate *cs));
u_char zs_read_data __P((struct zs_chanstate *cs));
u_char zs_read_reg(struct zs_chanstate *cs, u_char reg);
u_char zs_read_csr(struct zs_chanstate *cs);
u_char zs_read_data(struct zs_chanstate *cs);
void zs_write_reg __P((struct zs_chanstate *cs, u_char reg, u_char val));
void zs_write_csr __P((struct zs_chanstate *cs, u_char val));
void zs_write_data __P((struct zs_chanstate *cs, u_char val));
void zs_write_reg(struct zs_chanstate *cs, u_char reg, u_char val);
void zs_write_csr(struct zs_chanstate *cs, u_char val);
void zs_write_data(struct zs_chanstate *cs, u_char val);
/* The sparc has splzs() in psl.h */