Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
This commit is contained in:
parent
02cdf4d2c8
commit
454af1c0e8
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: altq_priq.c,v 1.20 2008/06/18 09:06:27 yamt Exp $ */
|
||||
/* $NetBSD: altq_priq.c,v 1.21 2009/03/14 15:35:58 dsl Exp $ */
|
||||
/* $KAME: altq_priq.c,v 1.13 2005/04/13 03:44:25 suz Exp $ */
|
||||
/*
|
||||
* Copyright (C) 2000-2003
|
||||
|
@ -31,7 +31,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: altq_priq.c,v 1.20 2008/06/18 09:06:27 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: altq_priq.c,v 1.21 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_altq.h"
|
||||
|
@ -566,8 +566,7 @@ priq_getq(struct priq_class *cl)
|
|||
}
|
||||
|
||||
static struct mbuf *
|
||||
priq_pollq(cl)
|
||||
struct priq_class *cl;
|
||||
priq_pollq(struct priq_class *cl)
|
||||
{
|
||||
return qhead(cl->cl_q);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.28 2009/01/16 01:03:47 bjh21 Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.29 2009/03/14 15:35:58 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 Ben Harris
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/param.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.28 2009/01/16 01:03:47 bjh21 Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.29 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#include <sys/buf.h>
|
||||
#include <sys/kernel.h>
|
||||
|
@ -63,9 +63,7 @@ struct vm_map *mb_map = NULL; /* and ever more shall be so */
|
|||
int waittime = -1;
|
||||
|
||||
void
|
||||
cpu_reboot(howto, b)
|
||||
int howto;
|
||||
char *b;
|
||||
cpu_reboot(int howto, char *b)
|
||||
{
|
||||
|
||||
/* If "always halt" was specified as a boot flag, obey. */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mem.c,v 1.13 2008/12/19 18:49:37 cegger Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.14 2009/03/14 15:35:58 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
|
@ -73,7 +73,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.13 2008/12/19 18:49:37 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.14 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
@ -107,10 +107,7 @@ const struct cdevsw mem_cdevsw = {
|
|||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
mmrw(dev, uio, flags)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
int flags;
|
||||
mmrw(dev_t dev, struct uio *uio, int flags)
|
||||
{
|
||||
register vm_offset_t v;
|
||||
register int c;
|
||||
|
@ -196,10 +193,7 @@ mmrw(dev, uio, flags)
|
|||
}
|
||||
|
||||
paddr_t
|
||||
mmmmap(dev, off, prot)
|
||||
dev_t dev;
|
||||
off_t off;
|
||||
int prot;
|
||||
mmmmap(dev_t dev, off_t off, int prot)
|
||||
{
|
||||
int ppn;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.22 2008/12/17 20:51:31 cegger Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.23 2009/03/14 15:35:58 dsl Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 2000 Ben Harris
|
||||
* All rights reserved.
|
||||
|
@ -102,7 +102,7 @@
|
|||
|
||||
#include <sys/param.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.22 2008/12/17 20:51:31 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.23 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#include <sys/kernel.h> /* for cold */
|
||||
#include <sys/malloc.h>
|
||||
|
@ -483,8 +483,7 @@ pmap_unwire(pmap_t pmap, vaddr_t va)
|
|||
}
|
||||
|
||||
void
|
||||
pmap_collect(pmap)
|
||||
pmap_t pmap;
|
||||
pmap_collect(pmap_t pmap)
|
||||
{
|
||||
UVMHIST_FUNC("pmap_collect");
|
||||
|
||||
|
@ -769,8 +768,7 @@ pmap_kremove(vaddr_t va, vsize_t len)
|
|||
}
|
||||
|
||||
inline bool
|
||||
pmap_is_modified(page)
|
||||
struct vm_page *page;
|
||||
pmap_is_modified(struct vm_page *page)
|
||||
{
|
||||
int ppn;
|
||||
bool rv;
|
||||
|
@ -803,8 +801,7 @@ pmap_is_modified(page)
|
|||
}
|
||||
|
||||
inline bool
|
||||
pmap_is_referenced(page)
|
||||
struct vm_page *page;
|
||||
pmap_is_referenced(struct vm_page *page)
|
||||
{
|
||||
int ppn;
|
||||
UVMHIST_FUNC("pmap_is_referenced");
|
||||
|
@ -977,8 +974,7 @@ pmap_page_protect(struct vm_page *page, vm_prot_t prot)
|
|||
}
|
||||
|
||||
paddr_t
|
||||
pmap_phys_address(ppn)
|
||||
paddr_t ppn;
|
||||
pmap_phys_address(paddr_t ppn)
|
||||
{
|
||||
panic("pmap_phys_address not implemented");
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: start.c,v 1.12 2009/02/13 22:41:00 apb Exp $ */
|
||||
/* $NetBSD: start.c,v 1.13 2009/03/14 15:35:58 dsl Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000 Ben Harris
|
||||
* All rights reserved.
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include <sys/param.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: start.c,v 1.12 2009/02/13 22:41:00 apb Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: start.c,v 1.13 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#include "opt_modular.h"
|
||||
|
||||
|
@ -92,8 +92,7 @@ extern char __bss_start__[], __bss_end__[];
|
|||
* assembler to get things going.
|
||||
*/
|
||||
void
|
||||
start(initbootconfig)
|
||||
struct bootconfig *initbootconfig;
|
||||
start(struct bootconfig *initbootconfig)
|
||||
{
|
||||
int onstack;
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/* $NetBSD: stubs.c,v 1.8 2009/01/18 16:42:09 bjh21 Exp $ */
|
||||
/* $NetBSD: stubs.c,v 1.9 2009/03/14 15:35:58 dsl Exp $ */
|
||||
/*
|
||||
* stubs.c -- functions I haven't written yet
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: stubs.c,v 1.8 2009/01/18 16:42:09 bjh21 Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: stubs.c,v 1.9 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
|
@ -14,46 +14,37 @@ __KERNEL_RCSID(0, "$NetBSD: stubs.c,v 1.8 2009/01/18 16:42:09 bjh21 Exp $");
|
|||
#include <uvm/uvm_extern.h>
|
||||
|
||||
int
|
||||
suibyte(base, c)
|
||||
void *base;
|
||||
int c;
|
||||
suibyte(void *base, int c)
|
||||
{
|
||||
panic("suibyte not implemented");
|
||||
}
|
||||
|
||||
int
|
||||
suisword(base, c)
|
||||
void *base;
|
||||
short c;
|
||||
suisword(void *base, short c)
|
||||
{
|
||||
panic("suisword not implemented");
|
||||
}
|
||||
|
||||
int
|
||||
suiword(base, c)
|
||||
void *base;
|
||||
long c;
|
||||
suiword(void *base, long c)
|
||||
{
|
||||
panic("suiword not implemented");
|
||||
}
|
||||
|
||||
int
|
||||
fuibyte(base)
|
||||
const void *base;
|
||||
fuibyte(const void *base)
|
||||
{
|
||||
panic("fuibyte not implemented");
|
||||
}
|
||||
|
||||
int
|
||||
fuisword(base)
|
||||
const void *base;
|
||||
fuisword(const void *base)
|
||||
{
|
||||
panic("fuisword not implemented");
|
||||
}
|
||||
|
||||
long
|
||||
fuiword(base)
|
||||
const void *base;
|
||||
fuiword(const void *base)
|
||||
{
|
||||
panic("fuiword not implemented");
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: md_hooks.c,v 1.9 2009/03/14 14:45:51 dsl Exp $ */
|
||||
/* $NetBSD: md_hooks.c,v 1.10 2009/03/14 15:35:58 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Gordon W. Ross
|
||||
|
@ -28,7 +28,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: md_hooks.c,v 1.9 2009/03/14 14:45:51 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: md_hooks.c,v 1.10 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#include "opt_md.h"
|
||||
|
||||
|
@ -62,9 +62,7 @@ extern int load_memory_disc_from_floppy(struct md_conf *md, dev_t dev);
|
|||
#endif /* MEMORY_DISK_ROOT_SIZE */
|
||||
|
||||
void
|
||||
md_attach_hook(unit, md)
|
||||
int unit;
|
||||
struct md_conf *md;
|
||||
md_attach_hook(int unit, struct md_conf *md)
|
||||
{
|
||||
if (unit == 0) {
|
||||
#ifdef MEMORY_DISK_ROOT_SIZE
|
||||
|
@ -95,9 +93,7 @@ md_attach_hook(unit, md)
|
|||
*/
|
||||
|
||||
void
|
||||
md_open_hook(unit, md)
|
||||
int unit;
|
||||
struct md_conf *md;
|
||||
md_open_hook(int unit, struct md_conf *md)
|
||||
{
|
||||
if (unit == 0) {
|
||||
/* The root memory disk only works single-user. */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rsbus.c,v 1.5 2007/03/26 22:46:20 hubertf Exp $ */
|
||||
/* $NetBSD: rsbus.c,v 1.6 2009/03/14 15:35:58 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002
|
||||
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: rsbus.c,v 1.5 2007/03/26 22:46:20 hubertf Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rsbus.c,v 1.6 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -61,10 +61,7 @@ CFATTACH_DECL(rsbus, sizeof(struct rsbus_softc),
|
|||
rsbus_match, rsbus_attach, NULL, NULL);
|
||||
|
||||
static int
|
||||
rsbus_match(parent, cf, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
void *aux;
|
||||
rsbus_match(struct device *parent, struct cfdata *cf, void *aux)
|
||||
{
|
||||
return(1);
|
||||
}
|
||||
|
@ -84,11 +81,7 @@ rsbus_attach(struct device *parent, struct device *self, void *aux)
|
|||
}
|
||||
|
||||
static int
|
||||
rsbus_search(parent, cf, ldesc, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
const int *ldesc;
|
||||
void *aux;
|
||||
rsbus_search(struct device *parent, struct cfdata *cf, const int *ldesc, void *aux)
|
||||
{
|
||||
struct rsbus_softc *sc = (struct rsbus_softc *)parent;
|
||||
struct rsbus_attach_args sa;
|
||||
|
@ -105,9 +98,7 @@ rsbus_search(parent, cf, ldesc, aux)
|
|||
}
|
||||
|
||||
static int
|
||||
rsbus_print(aux, name)
|
||||
void *aux;
|
||||
const char *name;
|
||||
rsbus_print(void *aux, const char *name)
|
||||
{
|
||||
struct rsbus_attach_args *sa = (struct rsbus_attach_args*)aux;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fd.c,v 1.43 2009/03/14 14:45:51 dsl Exp $ */
|
||||
/* $NetBSD: fd.c,v 1.44 2009/03/14 15:35:58 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -82,7 +82,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.43 2009/03/14 14:45:51 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.44 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
|
||||
|
@ -299,10 +299,7 @@ inline struct fd_type *fd_dev_to_type(struct fd_softc *, dev_t);
|
|||
int fdformat(dev_t, struct ne7_fd_formb *, struct lwp *);
|
||||
|
||||
int
|
||||
fdcprobe(parent, cf, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
void *aux;
|
||||
fdcprobe(struct device *parent, struct cfdata *cf, void *aux)
|
||||
{
|
||||
struct pioc_attach_args *pa = aux;
|
||||
bus_space_tag_t iot;
|
||||
|
@ -354,9 +351,7 @@ struct fdc_attach_args {
|
|||
* avoid printing `fdN not configured' messages.
|
||||
*/
|
||||
int
|
||||
fdprint(aux, fdc)
|
||||
void *aux;
|
||||
const char *fdc;
|
||||
fdprint(void *aux, const char *fdc)
|
||||
{
|
||||
register struct fdc_attach_args *fa = aux;
|
||||
|
||||
|
@ -424,10 +419,7 @@ fdcattach(parent, self, aux)
|
|||
}
|
||||
|
||||
int
|
||||
fdprobe(parent, cf, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
void *aux;
|
||||
fdprobe(struct device *parent, struct cfdata *cf, void *aux)
|
||||
{
|
||||
struct fdc_softc *fdc = (void *)parent;
|
||||
struct fdc_attach_args *fa = aux;
|
||||
|
@ -548,9 +540,7 @@ fd_nvtotype(fdc, nvraminfo, drive)
|
|||
}
|
||||
|
||||
inline struct fd_type *
|
||||
fd_dev_to_type(fd, dev)
|
||||
struct fd_softc *fd;
|
||||
dev_t dev;
|
||||
fd_dev_to_type(struct fd_softc *fd, dev_t dev)
|
||||
{
|
||||
int type = FDTYPE(dev);
|
||||
|
||||
|
@ -628,8 +618,7 @@ done:
|
|||
}
|
||||
|
||||
void
|
||||
fdstart(fd)
|
||||
struct fd_softc *fd;
|
||||
fdstart(struct fd_softc *fd)
|
||||
{
|
||||
struct fdc_softc *fdc = (void *) device_parent(&fd->sc_dev);
|
||||
int active = fdc->sc_drives.tqh_first != 0;
|
||||
|
@ -644,9 +633,7 @@ fdstart(fd)
|
|||
}
|
||||
|
||||
void
|
||||
fdfinish(fd, bp)
|
||||
struct fd_softc *fd;
|
||||
struct buf *bp;
|
||||
fdfinish(struct fd_softc *fd, struct buf *bp)
|
||||
{
|
||||
struct fdc_softc *fdc = (void *) device_parent(&fd->sc_dev);
|
||||
|
||||
|
@ -675,29 +662,21 @@ fdfinish(fd, bp)
|
|||
}
|
||||
|
||||
int
|
||||
fdread(dev, uio, flags)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
int flags;
|
||||
fdread(dev_t dev, struct uio *uio, int flags)
|
||||
{
|
||||
|
||||
return (physio(fdstrategy, NULL, dev, B_READ, minphys, uio));
|
||||
}
|
||||
|
||||
int
|
||||
fdwrite(dev, uio, flags)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
int flags;
|
||||
fdwrite(dev_t dev, struct uio *uio, int flags)
|
||||
{
|
||||
|
||||
return (physio(fdstrategy, NULL, dev, B_WRITE, minphys, uio));
|
||||
}
|
||||
|
||||
void
|
||||
fd_set_motor(fdc, reset)
|
||||
struct fdc_softc *fdc;
|
||||
int reset;
|
||||
fd_set_motor(struct fdc_softc *fdc, int reset)
|
||||
{
|
||||
struct fd_softc *fd;
|
||||
u_char status;
|
||||
|
@ -716,8 +695,7 @@ fd_set_motor(fdc, reset)
|
|||
}
|
||||
|
||||
void
|
||||
fd_motor_off(arg)
|
||||
void *arg;
|
||||
fd_motor_off(void *arg)
|
||||
{
|
||||
struct fd_softc *fd = arg;
|
||||
int s;
|
||||
|
@ -729,8 +707,7 @@ fd_motor_off(arg)
|
|||
}
|
||||
|
||||
void
|
||||
fd_motor_on(arg)
|
||||
void *arg;
|
||||
fd_motor_on(void *arg)
|
||||
{
|
||||
struct fd_softc *fd = arg;
|
||||
struct fdc_softc *fdc = (void *) device_parent(&fd->sc_dev);
|
||||
|
@ -744,8 +721,7 @@ fd_motor_on(arg)
|
|||
}
|
||||
|
||||
int
|
||||
fdcresult(fdc)
|
||||
struct fdc_softc *fdc;
|
||||
fdcresult(struct fdc_softc *fdc)
|
||||
{
|
||||
bus_space_tag_t iot = fdc->sc_iot;
|
||||
bus_space_handle_t ioh = fdc->sc_ioh;
|
||||
|
@ -773,10 +749,7 @@ fdcresult(fdc)
|
|||
}
|
||||
|
||||
int
|
||||
out_fdc(iot, ioh, x)
|
||||
bus_space_tag_t iot;
|
||||
bus_space_handle_t ioh;
|
||||
u_char x;
|
||||
out_fdc(bus_space_tag_t iot, bus_space_handle_t ioh, u_char x)
|
||||
{
|
||||
int i = 100000;
|
||||
|
||||
|
@ -826,8 +799,7 @@ fdclose(dev_t dev, int flags, int mode, struct lwp *l)
|
|||
}
|
||||
|
||||
void
|
||||
fdcstart(fdc)
|
||||
struct fdc_softc *fdc;
|
||||
fdcstart(struct fdc_softc *fdc)
|
||||
{
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
|
@ -873,10 +845,7 @@ fdcpstatus(int n, struct fdc_softc *fdc)
|
|||
}
|
||||
|
||||
void
|
||||
fdcstatus(dv, n, s)
|
||||
struct device *dv;
|
||||
int n;
|
||||
const char *s;
|
||||
fdcstatus(struct device *dv, int n, const char *s)
|
||||
{
|
||||
struct fdc_softc *fdc = (void *) device_parent(dv);
|
||||
|
||||
|
@ -891,8 +860,7 @@ fdcstatus(dv, n, s)
|
|||
}
|
||||
|
||||
void
|
||||
fdctimeout(arg)
|
||||
void *arg;
|
||||
fdctimeout(void *arg)
|
||||
{
|
||||
struct fdc_softc *fdc = arg;
|
||||
struct fd_softc *fd = fdc->sc_drives.tqh_first;
|
||||
|
@ -914,8 +882,7 @@ fdctimeout(arg)
|
|||
}
|
||||
|
||||
void
|
||||
fdcpseudointr(arg)
|
||||
void *arg;
|
||||
fdcpseudointr(void *arg)
|
||||
{
|
||||
int s;
|
||||
|
||||
|
@ -926,8 +893,7 @@ fdcpseudointr(arg)
|
|||
}
|
||||
|
||||
int
|
||||
fdcintr(arg)
|
||||
void *arg;
|
||||
fdcintr(void *arg)
|
||||
{
|
||||
struct fdc_softc *fdc = arg;
|
||||
#define st0 fdc->sc_status[0]
|
||||
|
@ -1245,8 +1211,7 @@ loop:
|
|||
}
|
||||
|
||||
void
|
||||
fdcretry(fdc)
|
||||
struct fdc_softc *fdc;
|
||||
fdcretry(struct fdc_softc *fdc)
|
||||
{
|
||||
struct fd_softc *fd;
|
||||
struct buf *bp;
|
||||
|
@ -1527,9 +1492,7 @@ fdformat(dev_t dev, struct ne7_fd_formb *finfo, struct lwp *l)
|
|||
int load_memory_disc_from_floppy(struct md_conf *md, dev_t dev);
|
||||
|
||||
int
|
||||
load_memory_disc_from_floppy(md, dev)
|
||||
struct md_conf *md;
|
||||
dev_t dev;
|
||||
load_memory_disc_from_floppy(struct md_conf *md, dev_t dev)
|
||||
{
|
||||
struct buf *bp;
|
||||
int loop;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pioc.c,v 1.13 2009/03/14 14:45:51 dsl Exp $ */
|
||||
/* $NetBSD: pioc.c,v 1.14 2009/03/14 15:35:58 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Mark Brinicombe.
|
||||
|
@ -41,7 +41,7 @@
|
|||
/*#define PIOC_DEBUG*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pioc.c,v 1.13 2009/03/14 14:45:51 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pioc.c,v 1.14 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -115,12 +115,7 @@ CFATTACH_DECL(pioc, sizeof(struct pioc_softc),
|
|||
*/
|
||||
|
||||
static void
|
||||
piocgetid(iot, ioh, config_entry, id, revision)
|
||||
bus_space_tag_t iot;
|
||||
bus_space_handle_t ioh;
|
||||
int config_entry;
|
||||
int *id;
|
||||
int *revision;
|
||||
piocgetid(bus_space_tag_t iot, bus_space_handle_t ioh, int config_entry, int *id, int *revision)
|
||||
{
|
||||
/*
|
||||
* Put the chip info configuration mode and read the ID and revision
|
||||
|
@ -146,10 +141,7 @@ piocgetid(iot, ioh, config_entry, id, revision)
|
|||
*/
|
||||
|
||||
static int
|
||||
piocmatch(parent, cf, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
void *aux;
|
||||
piocmatch(struct device *parent, struct cfdata *cf, void *aux)
|
||||
{
|
||||
struct mainbus_attach_args *mb = aux;
|
||||
bus_space_tag_t iot;
|
||||
|
@ -189,9 +181,7 @@ out:
|
|||
*/
|
||||
|
||||
static int
|
||||
piocprint(aux, name)
|
||||
void *aux;
|
||||
const char *name;
|
||||
piocprint(void *aux, const char *name)
|
||||
{
|
||||
struct pioc_attach_args *pa = aux;
|
||||
|
||||
|
@ -222,11 +212,7 @@ piocprint(aux, name)
|
|||
*/
|
||||
|
||||
static int
|
||||
piocsearch(parent, cf, ldesc, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
const int *ldesc;
|
||||
void *aux;
|
||||
piocsearch(struct device *parent, struct cfdata *cf, const int *ldesc, void *aux)
|
||||
{
|
||||
struct pioc_softc *sc = (struct pioc_softc *)parent;
|
||||
struct pioc_attach_args pa;
|
||||
|
@ -268,11 +254,7 @@ piocsearch(parent, cf, ldesc, aux)
|
|||
*/
|
||||
|
||||
static int
|
||||
piocsubmatch(parent, cf, ldesc, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
const int *ldesc;
|
||||
void *aux;
|
||||
piocsubmatch(struct device *parent, struct cfdata *cf, const int *ldesc, void *aux)
|
||||
{
|
||||
struct pioc_attach_args *pa = aux;
|
||||
int tryagain;
|
||||
|
@ -302,10 +284,7 @@ piocsubmatch(parent, cf, ldesc, aux)
|
|||
*/
|
||||
|
||||
static void
|
||||
piocattach(parent, self, aux)
|
||||
struct device *parent;
|
||||
struct device *self;
|
||||
void *aux;
|
||||
piocattach(struct device *parent, struct device *self, void *aux)
|
||||
{
|
||||
struct mainbus_attach_args *mb = aux;
|
||||
struct pioc_softc *sc = (struct pioc_softc *)self;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: amps.c,v 1.14 2008/04/28 20:23:10 martin Exp $ */
|
||||
/* $NetBSD: amps.c,v 1.15 2009/03/14 15:35:58 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: amps.c,v 1.14 2008/04/28 20:23:10 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: amps.c,v 1.15 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -114,9 +114,7 @@ struct amps_attach_args {
|
|||
/* Print function used during child config */
|
||||
|
||||
int
|
||||
amps_print(aux, name)
|
||||
void *aux;
|
||||
const char *name;
|
||||
amps_print(void *aux, const char *name)
|
||||
{
|
||||
struct amps_attach_args *aa = aux;
|
||||
|
||||
|
@ -133,10 +131,7 @@ amps_print(aux, name)
|
|||
*/
|
||||
|
||||
int
|
||||
amps_probe(parent, cf, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
void *aux;
|
||||
amps_probe(struct device *parent, struct cfdata *cf, void *aux)
|
||||
{
|
||||
struct podule_attach_args *pa = (void *)aux;
|
||||
|
||||
|
@ -201,8 +196,7 @@ amps_attach(parent, self, aux)
|
|||
*/
|
||||
|
||||
/*void
|
||||
amps_shutdown(arg)
|
||||
void *arg;
|
||||
amps_shutdown(void *arg)
|
||||
{
|
||||
}*/
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cosc.c,v 1.13 2005/12/11 12:16:05 christos Exp $ */
|
||||
/* $NetBSD: cosc.c,v 1.14 2009/03/14 15:35:58 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Mark Brinicombe
|
||||
|
@ -42,7 +42,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cosc.c,v 1.13 2005/12/11 12:16:05 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cosc.c,v 1.14 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -86,10 +86,7 @@ int cosc_poll = 1;
|
|||
#endif
|
||||
|
||||
int
|
||||
coscmatch(pdp, cf, auxp)
|
||||
struct device *pdp;
|
||||
struct cfdata *cf;
|
||||
void *auxp;
|
||||
coscmatch(struct device *pdp, struct cfdata *cf, void *auxp)
|
||||
{
|
||||
struct podule_attach_args *pa = (struct podule_attach_args *)auxp;
|
||||
|
||||
|
@ -294,9 +291,7 @@ coscattach(pdp, dp, auxp)
|
|||
/* Turn on/off led */
|
||||
|
||||
void
|
||||
cosc_led(sc, mode)
|
||||
struct esc_softc *sc;
|
||||
int mode;
|
||||
cosc_led(struct esc_softc *sc, int mode)
|
||||
{
|
||||
cosc_regmap_p rp;
|
||||
|
||||
|
@ -313,8 +308,7 @@ cosc_led(sc, mode)
|
|||
|
||||
|
||||
int
|
||||
cosc_intr(arg)
|
||||
void *arg;
|
||||
cosc_intr(void *arg)
|
||||
{
|
||||
struct esc_softc *dev = arg;
|
||||
cosc_regmap_p rp;
|
||||
|
@ -348,9 +342,7 @@ cosc_intr(arg)
|
|||
/* Load transfer address into dma register */
|
||||
|
||||
void
|
||||
cosc_set_dma_adr(sc, ptr)
|
||||
struct esc_softc *sc;
|
||||
void *ptr;
|
||||
cosc_set_dma_adr(struct esc_softc *sc, void *ptr)
|
||||
{
|
||||
printf("cosc_set_dma_adr(sc = 0x%08x, ptr = 0x%08x)\n", (u_int)sc, (u_int)ptr);
|
||||
return;
|
||||
|
@ -360,9 +352,7 @@ cosc_set_dma_adr(sc, ptr)
|
|||
/* Set DMA transfer counter */
|
||||
|
||||
void
|
||||
cosc_set_dma_tc(sc, len)
|
||||
struct esc_softc *sc;
|
||||
unsigned int len;
|
||||
cosc_set_dma_tc(struct esc_softc *sc, unsigned int len)
|
||||
{
|
||||
printf("cosc_set_dma_tc(sc, len = 0x%08x)", len);
|
||||
|
||||
|
@ -377,9 +367,7 @@ cosc_set_dma_tc(sc, len)
|
|||
/* Set DMA mode */
|
||||
|
||||
void
|
||||
cosc_set_dma_mode(sc, mode)
|
||||
struct esc_softc *sc;
|
||||
int mode;
|
||||
cosc_set_dma_mode(struct esc_softc *sc, int mode)
|
||||
{
|
||||
printf("cosc_set_dma_mode(sc, mode = %d)", mode);
|
||||
}
|
||||
|
@ -388,11 +376,7 @@ cosc_set_dma_mode(sc, mode)
|
|||
/* Initialize DMA for transfer */
|
||||
|
||||
int
|
||||
cosc_setup_dma(sc, ptr, len, mode)
|
||||
struct esc_softc *sc;
|
||||
void *ptr;
|
||||
int len;
|
||||
int mode;
|
||||
cosc_setup_dma(struct esc_softc *sc, void *ptr, int len, int mode)
|
||||
{
|
||||
/* printf("cosc_setup_dma(sc, ptr = 0x%08x, len = 0x%08x, mode = 0x%08x)\n", (u_int)ptr, len, mode);*/
|
||||
return(0);
|
||||
|
@ -403,10 +387,7 @@ cosc_setup_dma(sc, ptr, len, mode)
|
|||
/* Check if address and len is ok for DMA transfer */
|
||||
|
||||
int
|
||||
cosc_need_bump(sc, ptr, len)
|
||||
struct esc_softc *sc;
|
||||
void *ptr;
|
||||
int len;
|
||||
cosc_need_bump(struct esc_softc *sc, void *ptr, int len)
|
||||
{
|
||||
int p;
|
||||
|
||||
|
@ -426,11 +407,7 @@ cosc_need_bump(sc, ptr, len)
|
|||
/* Interrupt driven routines */
|
||||
|
||||
int
|
||||
cosc_build_dma_chain(sc, chain, p, l)
|
||||
struct esc_softc *sc;
|
||||
struct esc_dma_chain *chain;
|
||||
void *p;
|
||||
int l;
|
||||
cosc_build_dma_chain(struct esc_softc *sc, struct esc_dma_chain *chain, void *p, int l)
|
||||
{
|
||||
printf("cosc_build_dma_chain()\n");
|
||||
return(0);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: csc.c,v 1.14 2008/04/28 20:23:10 martin Exp $ */
|
||||
/* $NetBSD: csc.c,v 1.15 2009/03/14 15:35:58 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -34,7 +34,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: csc.c,v 1.14 2008/04/28 20:23:10 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: csc.c,v 1.15 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -77,10 +77,7 @@ void csc_set_dma_mode(struct sfas_softc *, int);
|
|||
* if we are a Cumana SCSI-2 card
|
||||
*/
|
||||
int
|
||||
cscmatch(pdp, cf, auxp)
|
||||
struct device *pdp;
|
||||
struct cfdata *cf;
|
||||
void *auxp;
|
||||
cscmatch(struct device *pdp, struct cfdata *cf, void *auxp)
|
||||
{
|
||||
struct podule_attach_args *pa = (struct podule_attach_args *)auxp;
|
||||
|
||||
|
@ -98,10 +95,7 @@ cscmatch(pdp, cf, auxp)
|
|||
}
|
||||
|
||||
void
|
||||
cscattach(pdp, dp, auxp)
|
||||
struct device *pdp;
|
||||
struct device *dp;
|
||||
void *auxp;
|
||||
cscattach(struct device *pdp, struct device *dp, void *auxp)
|
||||
{
|
||||
struct csc_softc *sc = (struct csc_softc *)dp;
|
||||
struct podule_attach_args *pa;
|
||||
|
@ -207,8 +201,7 @@ cscattach(pdp, dp, auxp)
|
|||
|
||||
|
||||
int
|
||||
csc_intr(arg)
|
||||
void *arg;
|
||||
csc_intr(void *arg)
|
||||
{
|
||||
struct sfas_softc *dev = arg;
|
||||
csc_regmap_p rp;
|
||||
|
@ -237,18 +230,14 @@ csc_intr(arg)
|
|||
|
||||
/* Load transfer address into DMA register */
|
||||
void
|
||||
csc_set_dma_adr(sc, ptr)
|
||||
struct sfas_softc *sc;
|
||||
void *ptr;
|
||||
csc_set_dma_adr(struct sfas_softc *sc, void *ptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* Set DMA transfer counter */
|
||||
void
|
||||
csc_set_dma_tc(sc, len)
|
||||
struct sfas_softc *sc;
|
||||
unsigned int len;
|
||||
csc_set_dma_tc(struct sfas_softc *sc, unsigned int len)
|
||||
{
|
||||
*sc->sc_fas->sfas_tc_low = len; len >>= 8;
|
||||
*sc->sc_fas->sfas_tc_mid = len; len >>= 8;
|
||||
|
@ -257,19 +246,13 @@ csc_set_dma_tc(sc, len)
|
|||
|
||||
/* Set DMA mode */
|
||||
void
|
||||
csc_set_dma_mode(sc, mode)
|
||||
struct sfas_softc *sc;
|
||||
int mode;
|
||||
csc_set_dma_mode(struct sfas_softc *sc, int mode)
|
||||
{
|
||||
}
|
||||
|
||||
/* Initialize DMA for transfer */
|
||||
int
|
||||
csc_setup_dma(sc, ptr, len, mode)
|
||||
void *sc;
|
||||
void *ptr;
|
||||
int len;
|
||||
int mode;
|
||||
csc_setup_dma(void *sc, void *ptr, int len, int mode)
|
||||
{
|
||||
|
||||
return (0);
|
||||
|
@ -277,10 +260,7 @@ csc_setup_dma(sc, ptr, len, mode)
|
|||
|
||||
/* Check if address and len is ok for DMA transfer */
|
||||
int
|
||||
csc_need_bump(sc, ptr, len)
|
||||
void *sc;
|
||||
void *ptr;
|
||||
int len;
|
||||
csc_need_bump(void *sc, void *ptr, int len)
|
||||
{
|
||||
int p;
|
||||
|
||||
|
@ -298,20 +278,14 @@ csc_need_bump(sc, ptr, len)
|
|||
|
||||
/* Interrupt driven routines */
|
||||
int
|
||||
csc_build_dma_chain(sc, chain, p, l)
|
||||
void *sc;
|
||||
void *chain;
|
||||
void *p;
|
||||
int l;
|
||||
csc_build_dma_chain(void *sc, void *chain, void *p, int l)
|
||||
{
|
||||
return(0);
|
||||
}
|
||||
|
||||
/* Turn on/off led */
|
||||
void
|
||||
csc_led(v, mode)
|
||||
void *v;
|
||||
int mode;
|
||||
csc_led(void *v, int mode)
|
||||
{
|
||||
struct sfas_softc *sc = v;
|
||||
csc_regmap_p rp;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: esc.c,v 1.19 2009/03/14 14:45:51 dsl Exp $ */
|
||||
/* $NetBSD: esc.c,v 1.20 2009/03/14 15:35:58 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
|
@ -86,7 +86,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: esc.c,v 1.19 2009/03/14 14:45:51 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: esc.c,v 1.20 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -156,8 +156,7 @@ int esc_debug = 2;
|
|||
* default minphys routine for esc based controllers
|
||||
*/
|
||||
void
|
||||
esc_minphys(bp)
|
||||
struct buf *bp;
|
||||
esc_minphys(struct buf *bp)
|
||||
{
|
||||
|
||||
/*
|
||||
|
@ -170,9 +169,7 @@ esc_minphys(bp)
|
|||
* Initialize the nexus structs.
|
||||
*/
|
||||
void
|
||||
esc_init_nexus(dev, nexus)
|
||||
struct esc_softc *dev;
|
||||
struct nexus *nexus;
|
||||
esc_init_nexus(struct esc_softc *dev, struct nexus *nexus)
|
||||
{
|
||||
bzero(nexus, sizeof(struct nexus));
|
||||
|
||||
|
@ -185,8 +182,7 @@ esc_init_nexus(dev, nexus)
|
|||
}
|
||||
|
||||
void
|
||||
escinitialize(dev)
|
||||
struct esc_softc *dev;
|
||||
escinitialize(struct esc_softc *dev)
|
||||
{
|
||||
u_int *pte;
|
||||
int i;
|
||||
|
@ -324,9 +320,7 @@ esc_scsi_request(struct scsipi_channel *chan, scsipi_adapter_req_t req,
|
|||
* Actually select the unit, whereby the whole scsi-process is started.
|
||||
*/
|
||||
void
|
||||
esc_donextcmd(dev, pendp)
|
||||
struct esc_softc *dev;
|
||||
struct esc_pending *pendp;
|
||||
esc_donextcmd(struct esc_softc *dev, struct esc_pending *pendp)
|
||||
{
|
||||
int s;
|
||||
|
||||
|
@ -379,10 +373,7 @@ esc_donextcmd(dev, pendp)
|
|||
}
|
||||
|
||||
void
|
||||
esc_scsidone(dev, xs, stat)
|
||||
struct esc_softc *dev;
|
||||
struct scsipi_xfer *xs;
|
||||
int stat;
|
||||
esc_scsidone(struct esc_softc *dev, struct scsipi_xfer *xs, int stat)
|
||||
{
|
||||
struct esc_pending *pendp;
|
||||
int s;
|
||||
|
@ -436,9 +427,7 @@ esc_scsidone(dev, xs, stat)
|
|||
* delay time.
|
||||
*/
|
||||
void
|
||||
escreset(dev, how)
|
||||
struct esc_softc *dev;
|
||||
int how;
|
||||
escreset(struct esc_softc *dev, int how)
|
||||
{
|
||||
esc_regmap_p rp;
|
||||
int i, s;
|
||||
|
@ -495,8 +484,7 @@ escreset(dev, how)
|
|||
* Save active data pointers to the nexus block currently active.
|
||||
*/
|
||||
void
|
||||
esc_save_pointers(dev)
|
||||
struct esc_softc *dev;
|
||||
esc_save_pointers(struct esc_softc *dev)
|
||||
{
|
||||
struct nexus *nx;
|
||||
|
||||
|
@ -518,8 +506,7 @@ esc_save_pointers(dev)
|
|||
* Restore data pointers from the currently active nexus block.
|
||||
*/
|
||||
void
|
||||
esc_restore_pointers(dev)
|
||||
struct esc_softc *dev;
|
||||
esc_restore_pointers(struct esc_softc *dev)
|
||||
{
|
||||
struct nexus *nx;
|
||||
|
||||
|
@ -545,8 +532,7 @@ esc_restore_pointers(dev)
|
|||
* the FAS chip. This function MUST NOT BE CALLED without interrupt disabled.
|
||||
*/
|
||||
void
|
||||
esciwait(dev)
|
||||
struct esc_softc *dev;
|
||||
esciwait(struct esc_softc *dev)
|
||||
{
|
||||
esc_regmap_p rp;
|
||||
|
||||
|
@ -580,8 +566,7 @@ esciwait(dev)
|
|||
* rules that apply to esciwait also applies here.
|
||||
*/
|
||||
void
|
||||
esc_ixfer(dev)
|
||||
struct esc_softc *dev;
|
||||
esc_ixfer(struct esc_softc *dev)
|
||||
{
|
||||
esc_regmap_p rp;
|
||||
u_char *buf;
|
||||
|
@ -631,8 +616,7 @@ esc_ixfer(dev)
|
|||
* rules that apply to esciwait also applies here.
|
||||
*/
|
||||
void
|
||||
esc_ixfer(dev)
|
||||
struct esc_softc *dev;
|
||||
esc_ixfer(struct esc_softc *dev)
|
||||
{
|
||||
esc_regmap_p rp;
|
||||
vu_char *esc_status;
|
||||
|
@ -708,10 +692,7 @@ esc_ixfer(dev)
|
|||
* Build a Synchronous Data Transfer Request message
|
||||
*/
|
||||
void
|
||||
esc_build_sdtrm(dev, period, offset)
|
||||
struct esc_softc *dev;
|
||||
int period;
|
||||
int offset;
|
||||
esc_build_sdtrm(struct esc_softc *dev, int period, int offset)
|
||||
{
|
||||
dev->sc_msg_out[0] = 0x01;
|
||||
dev->sc_msg_out[1] = 0x03;
|
||||
|
@ -725,9 +706,7 @@ esc_build_sdtrm(dev, period, offset)
|
|||
* Arbitate the scsi bus and select the unit
|
||||
*/
|
||||
int
|
||||
esc_select_unit(dev, target)
|
||||
struct esc_softc *dev;
|
||||
short target;
|
||||
esc_select_unit(struct esc_softc *dev, short target)
|
||||
{
|
||||
esc_regmap_p rp;
|
||||
struct nexus *nexus;
|
||||
|
@ -788,9 +767,7 @@ esc_select_unit(dev, target)
|
|||
* Grab the nexus if available else return 0.
|
||||
*/
|
||||
struct nexus *
|
||||
esc_arbitate_target(dev, target)
|
||||
struct esc_softc *dev;
|
||||
int target;
|
||||
esc_arbitate_target(struct esc_softc *dev, int target)
|
||||
{
|
||||
struct nexus *nexus;
|
||||
int s;
|
||||
|
@ -816,15 +793,7 @@ esc_arbitate_target(dev, target)
|
|||
* Setup a nexus for use. Initializes command, buffer pointers and DMA chain.
|
||||
*/
|
||||
void
|
||||
esc_setup_nexus(dev, nexus, pendp, cbuf, clen, buf, len, mode)
|
||||
struct esc_softc *dev;
|
||||
struct nexus *nexus;
|
||||
struct esc_pending *pendp;
|
||||
unsigned char *cbuf;
|
||||
int clen;
|
||||
unsigned char *buf;
|
||||
int len;
|
||||
int mode;
|
||||
esc_setup_nexus(struct esc_softc *dev, struct nexus *nexus, struct esc_pending *pendp, unsigned char *cbuf, int clen, unsigned char *buf, int len, int mode)
|
||||
{
|
||||
int sync, target, lun;
|
||||
|
||||
|
@ -925,14 +894,7 @@ esc_setup_nexus(dev, nexus, pendp, cbuf, clen, buf, len, mode)
|
|||
}
|
||||
|
||||
int
|
||||
escselect(dev, pendp, cbuf, clen, buf, len, mode)
|
||||
struct esc_softc *dev;
|
||||
struct esc_pending *pendp;
|
||||
unsigned char *cbuf;
|
||||
int clen;
|
||||
unsigned char *buf;
|
||||
int len;
|
||||
int mode;
|
||||
escselect(struct esc_softc *dev, struct esc_pending *pendp, unsigned char *cbuf, int clen, unsigned char *buf, int len, int mode)
|
||||
{
|
||||
struct nexus *nexus;
|
||||
|
||||
|
@ -951,9 +913,7 @@ escselect(dev, pendp, cbuf, clen, buf, len, mode)
|
|||
}
|
||||
|
||||
int
|
||||
escgo(dev, pendp)
|
||||
struct esc_softc *dev;
|
||||
struct esc_pending *pendp;
|
||||
escgo(struct esc_softc *dev, struct esc_pending *pendp)
|
||||
{
|
||||
int s;
|
||||
char *buf;
|
||||
|
@ -990,9 +950,7 @@ escgo(dev, pendp)
|
|||
* We don't know if we have an active nexus here!
|
||||
*/
|
||||
int
|
||||
esc_pretests(dev, rp)
|
||||
struct esc_softc *dev;
|
||||
esc_regmap_p rp;
|
||||
esc_pretests(struct esc_softc *dev, esc_regmap_p rp)
|
||||
{
|
||||
struct nexus *nexus;
|
||||
int i, s;
|
||||
|
@ -1092,10 +1050,7 @@ esc_pretests(dev, rp)
|
|||
* processing. We know that we have an active nexus here.
|
||||
*/
|
||||
int
|
||||
esc_midaction(dev, rp, nexus)
|
||||
struct esc_softc *dev;
|
||||
esc_regmap_p rp;
|
||||
struct nexus *nexus;
|
||||
esc_midaction(struct esc_softc *dev, esc_regmap_p rp, struct nexus *nexus)
|
||||
{
|
||||
int i, left, len, s;
|
||||
u_char status, msg;
|
||||
|
@ -1312,10 +1267,7 @@ esc_midaction(dev, rp, nexus)
|
|||
* phase passes). We know that we have an active nexus here.
|
||||
*/
|
||||
int
|
||||
esc_postaction(dev, rp, nexus)
|
||||
struct esc_softc *dev;
|
||||
esc_regmap_p rp;
|
||||
struct nexus *nexus;
|
||||
esc_postaction(struct esc_softc *dev, esc_regmap_p rp, struct nexus *nexus)
|
||||
{
|
||||
int i, len;
|
||||
u_char cmd;
|
||||
|
@ -1638,8 +1590,7 @@ esc_postaction(dev, rp, nexus)
|
|||
* Stub for interrupt machine.
|
||||
*/
|
||||
void
|
||||
escintr(dev)
|
||||
struct esc_softc *dev;
|
||||
escintr(struct esc_softc *dev)
|
||||
{
|
||||
esc_regmap_p rp;
|
||||
struct nexus *nexus;
|
||||
|
@ -1664,9 +1615,7 @@ escintr(dev)
|
|||
* escintr.
|
||||
*/
|
||||
void
|
||||
escicmd(dev, pendp)
|
||||
struct esc_softc *dev;
|
||||
struct esc_pending *pendp;
|
||||
escicmd(struct esc_softc *dev, struct esc_pending *pendp)
|
||||
{
|
||||
esc_regmap_p rp;
|
||||
struct nexus *nexus;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_ie.c,v 1.21 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: if_ie.c,v 1.22 2009/03/14 15:35:58 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Melvin Tang-Richardson.
|
||||
|
@ -53,7 +53,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ie.c,v 1.21 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ie.c,v 1.22 2009/03/14 15:35:58 dsl Exp $");
|
||||
|
||||
#define IGNORE_ETHER1_IDROM_CHECKSUM
|
||||
|
||||
|
@ -211,8 +211,7 @@ CFATTACH_DECL(ie, sizeof(struct ie_softc),
|
|||
*/
|
||||
|
||||
static inline void
|
||||
ie_cli(sc)
|
||||
struct ie_softc *sc;
|
||||
ie_cli(struct ie_softc *sc)
|
||||
{
|
||||
WriteByte(sc->sc_fastbase + (IE_CONTROL<<2), IE_CONT_CLI);
|
||||
}
|
||||
|
@ -222,8 +221,7 @@ ie_cli(sc)
|
|||
*/
|
||||
|
||||
static inline void
|
||||
ieattn(sc)
|
||||
struct ie_softc *sc;
|
||||
ieattn(struct ie_softc *sc)
|
||||
{
|
||||
WriteByte ( sc->sc_control + (IE_CONTROL<<2), IE_CONT_ATTN );
|
||||
}
|
||||
|
@ -233,9 +231,7 @@ ieattn(sc)
|
|||
*/
|
||||
|
||||
static inline void
|
||||
setpage(sc, off)
|
||||
struct ie_softc *sc;
|
||||
u_long off;
|
||||
setpage(struct ie_softc *sc, u_long off)
|
||||
{
|
||||
WriteByte ( sc->sc_control + (IE_PAGE<<2), IE_COFF2PAGE(off) );
|
||||
}
|
||||
|
@ -245,9 +241,7 @@ setpage(sc, off)
|
|||
*/
|
||||
|
||||
static void
|
||||
ie_ack(sc, mask)
|
||||
struct ie_softc *sc;
|
||||
u_short mask;
|
||||
ie_ack(struct ie_softc *sc, u_short mask)
|
||||
{
|
||||
u_short stat;
|
||||
int i;
|
||||
|
@ -280,9 +274,7 @@ ie_ack(sc, mask)
|
|||
|
||||
#ifndef IGNORE_ETHER1_IDROM_CHECKSUM
|
||||
static u_long
|
||||
crc32(p, l)
|
||||
u_char *p;
|
||||
int l;
|
||||
crc32(u_char *p, int l)
|
||||
{
|
||||
u_long crc=-1;
|
||||
int i, b;
|
||||
|
@ -501,10 +493,7 @@ void ieattach ( struct device *parent, struct device *self, void *aux )
|
|||
*/
|
||||
|
||||
void
|
||||
PWriteShorts(src, dest, cnt)
|
||||
char *src;
|
||||
char *dest;
|
||||
int cnt;
|
||||
PWriteShorts(char *src, char *dest, int cnt)
|
||||
{
|
||||
for (cnt /= 2; --cnt >= 0; ) {
|
||||
PWriteShort(dest, *(u_short *)src);
|
||||
|
@ -514,10 +503,7 @@ PWriteShorts(src, dest, cnt)
|
|||
}
|
||||
|
||||
void
|
||||
ReadShorts(src, dest, cnt)
|
||||
char *src;
|
||||
char *dest;
|
||||
int cnt;
|
||||
ReadShorts(char *src, char *dest, int cnt)
|
||||
{
|
||||
for (cnt /= 2; --cnt >= 0; ) {
|
||||
*(u_short *)dest = ReadShort(src);
|
||||
|
@ -532,11 +518,7 @@ ReadShorts(src, dest, cnt)
|
|||
*/
|
||||
|
||||
static void
|
||||
host2ie(sc, src, dest, size)
|
||||
struct ie_softc *sc;
|
||||
void *src;
|
||||
u_long dest;
|
||||
int size;
|
||||
host2ie(struct ie_softc *sc, void *src, u_long dest, int size)
|
||||
{
|
||||
int cnt;
|
||||
char *sptr = src;
|
||||
|
@ -559,11 +541,7 @@ host2ie(sc, src, dest, size)
|
|||
}
|
||||
|
||||
static void
|
||||
ie2host(sc, src, dest, size)
|
||||
struct ie_softc *sc;
|
||||
u_long src;
|
||||
void *dest;
|
||||
int size;
|
||||
ie2host(struct ie_softc *sc, u_long src, void *dest, int size)
|
||||
{
|
||||
int cnt;
|
||||
char *dptr = dest;
|
||||
|
@ -591,10 +569,7 @@ ie2host(sc, src, dest, size)
|
|||
*/
|
||||
|
||||
static void
|
||||
iezero(sc, p, size)
|
||||
struct ie_softc *sc;
|
||||
u_long p;
|
||||
int size;
|
||||
iezero(struct ie_softc *sc, u_long p, int size)
|
||||
{
|
||||
int cnt;
|
||||
|
||||
|
@ -681,8 +656,7 @@ ieioctl(struct ifnet *ifp, unsigned long cmd, void *data)
|
|||
*/
|
||||
|
||||
void
|
||||
iereset(sc)
|
||||
struct ie_softc *sc;
|
||||
iereset(struct ie_softc *sc)
|
||||
{
|
||||
struct ie_sys_ctl_block scb;
|
||||
int s = splnet();
|
||||
|
@ -707,8 +681,7 @@ iereset(sc)
|
|||
*/
|
||||
|
||||
void
|
||||
iewatchdog(ifp)
|
||||
struct ifnet *ifp;
|
||||
iewatchdog(struct ifnet *ifp)
|
||||
{
|
||||
struct ie_softc *sc = ifp->if_softc;
|
||||
|
||||
|
@ -722,8 +695,7 @@ iewatchdog(ifp)
|
|||
*/
|
||||
|
||||
static void
|
||||
run_tdr(sc)
|
||||
struct ie_softc *sc;
|
||||
run_tdr(struct ie_softc *sc)
|
||||
{
|
||||
struct ie_sys_ctl_block scb;
|
||||
u_long ptr = IE_IBASE + IE_SCB_OFF + sizeof scb;
|
||||
|
@ -788,9 +760,7 @@ struct ie_softc *sc;
|
|||
}
|
||||
|
||||
u_long
|
||||
setup_rfa(sc, ptr)
|
||||
struct ie_softc *sc;
|
||||
u_long ptr;
|
||||
setup_rfa(struct ie_softc *sc, u_long ptr)
|
||||
{
|
||||
int i;
|
||||
{
|
||||
|
@ -849,8 +819,7 @@ setup_rfa(sc, ptr)
|
|||
}
|
||||
|
||||
static void
|
||||
start_receiver(sc)
|
||||
struct ie_softc *sc;
|
||||
start_receiver(struct ie_softc *sc)
|
||||
{
|
||||
struct ie_sys_ctl_block scb;
|
||||
ie2host ( sc, IE_IBASE + IE_SCB_OFF, &scb, sizeof scb );
|
||||
|
@ -867,8 +836,7 @@ start_receiver(sc)
|
|||
*/
|
||||
|
||||
int
|
||||
ieinit(sc)
|
||||
struct ie_softc *sc;
|
||||
ieinit(struct ie_softc *sc)
|
||||
{
|
||||
struct ifnet *ifp;
|
||||
struct ie_sys_ctl_block scb;
|
||||
|
@ -983,8 +951,7 @@ ieinit(sc)
|
|||
}
|
||||
|
||||
int
|
||||
iestop(sc)
|
||||
struct ie_softc *sc;
|
||||
iestop(struct ie_softc *sc)
|
||||
{
|
||||
struct ie_sys_ctl_block scb;
|
||||
int s = splnet();
|
||||
|
@ -1077,9 +1044,7 @@ command_and_wait(sc, cmd, pscb, pcmd, ocmd, scmd, mask)
|
|||
(xoffsetof(type, member)), dest );
|
||||
|
||||
static inline int
|
||||
ie_buflen(sc, head)
|
||||
struct ie_softc *sc;
|
||||
int head;
|
||||
ie_buflen(struct ie_softc *sc, int head)
|
||||
{
|
||||
int actual;
|
||||
|
||||
|
@ -1090,8 +1055,7 @@ ie_buflen(sc, head)
|
|||
}
|
||||
|
||||
static inline int
|
||||
ie_packet_len(sc)
|
||||
struct ie_softc *sc;
|
||||
ie_packet_len(struct ie_softc *sc)
|
||||
{
|
||||
int i;
|
||||
int actual;
|
||||
|
@ -1246,8 +1210,7 @@ ieget(struct ie_softc *sc, int *to_bpf )
|
|||
}
|
||||
|
||||
void
|
||||
ie_drop_packet_buffer(sc)
|
||||
struct ie_softc *sc;
|
||||
ie_drop_packet_buffer(struct ie_softc *sc)
|
||||
{
|
||||
int i, actual, last;
|
||||
|
||||
|
@ -1284,9 +1247,7 @@ ie_drop_packet_buffer(sc)
|
|||
}
|
||||
|
||||
void
|
||||
ie_read_frame(sc, num)
|
||||
struct ie_softc *sc;
|
||||
int num;
|
||||
ie_read_frame(struct ie_softc *sc, int num)
|
||||
{
|
||||
int status;
|
||||
struct ie_recv_frame_desc rfd;
|
||||
|
@ -1341,8 +1302,7 @@ ie_read_frame(sc, num)
|
|||
}
|
||||
|
||||
void
|
||||
ierint(sc)
|
||||
struct ie_softc *sc;
|
||||
ierint(struct ie_softc *sc)
|
||||
{
|
||||
int i;
|
||||
int times_thru = 1024;
|
||||
|
@ -1397,8 +1357,7 @@ ierint(sc)
|
|||
static int in_intr = 0;
|
||||
|
||||
int
|
||||
ieintr(arg)
|
||||
void *arg;
|
||||
ieintr(void *arg)
|
||||
{
|
||||
struct ie_softc *sc = arg;
|
||||
u_short status;
|
||||
|
@ -1469,8 +1428,7 @@ loop:
|
|||
}
|
||||
|
||||
void
|
||||
iexmit(sc)
|
||||
struct ie_softc *sc;
|
||||
iexmit(struct ie_softc *sc)
|
||||
{
|
||||
/* int actual;*/
|
||||
struct ie_sys_ctl_block scb;
|
||||
|
@ -1505,8 +1463,7 @@ iexmit(sc)
|
|||
*/
|
||||
|
||||
void
|
||||
iestart(ifp)
|
||||
struct ifnet *ifp;
|
||||
iestart(struct ifnet *ifp)
|
||||
{
|
||||
struct ie_softc *sc = ifp->if_softc;
|
||||
struct mbuf *m0, *m;
|
||||
|
@ -1579,8 +1536,7 @@ iestart(ifp)
|
|||
}
|
||||
|
||||
void
|
||||
ietint(sc)
|
||||
struct ie_softc *sc;
|
||||
ietint(struct ie_softc *sc)
|
||||
{
|
||||
struct ifnet *ifp = &sc->sc_ethercom.ec_if;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: netslot.c,v 1.7 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: netslot.c,v 1.8 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1996 Mark Brinicombe.
|
||||
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include <sys/param.h>
|
||||
|
||||
__KERNEL_RCSID(1, "$NetBSD: netslot.c,v 1.7 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(1, "$NetBSD: netslot.c,v 1.8 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
|
@ -55,9 +55,7 @@ __KERNEL_RCSID(1, "$NetBSD: netslot.c,v 1.7 2009/03/14 14:45:52 dsl Exp $");
|
|||
u_int netslotread(u_int, int);
|
||||
|
||||
u_int
|
||||
netslotread(address, offset)
|
||||
u_int address;
|
||||
int offset;
|
||||
netslotread(u_int address, int offset)
|
||||
{
|
||||
static int netslotoffset = -1;
|
||||
|
||||
|
@ -75,8 +73,7 @@ netslotread(address, offset)
|
|||
}
|
||||
|
||||
void
|
||||
netslotscan(dev)
|
||||
struct device *dev;
|
||||
netslotscan(struct device *dev)
|
||||
{
|
||||
podule_t *podule;
|
||||
volatile u_char *address;
|
||||
|
@ -146,8 +143,7 @@ netslotscan(dev)
|
|||
}
|
||||
|
||||
void
|
||||
netslot_ea(buffer)
|
||||
u_int8_t *buffer;
|
||||
netslot_ea(u_int8_t *buffer)
|
||||
{
|
||||
/* Build station address from machine ID */
|
||||
buffer[0] = 0x00;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: podulebus.c,v 1.21 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: podulebus.c,v 1.22 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1996 Mark Brinicombe.
|
||||
|
@ -43,7 +43,7 @@
|
|||
|
||||
#include <sys/param.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: podulebus.c,v 1.21 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: podulebus.c,v 1.22 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
|
@ -89,10 +89,7 @@ void podulescan(struct device *);
|
|||
*/
|
||||
|
||||
int
|
||||
podulebusmatch(parent, cf, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
void *aux;
|
||||
podulebusmatch(struct device *parent, struct cfdata *cf, void *aux)
|
||||
{
|
||||
switch (IOMD_ID) {
|
||||
case RPC600_IOMD_ID:
|
||||
|
@ -105,9 +102,7 @@ podulebusmatch(parent, cf, aux)
|
|||
|
||||
|
||||
int
|
||||
podulebusprint(aux, name)
|
||||
void *aux;
|
||||
const char *name;
|
||||
podulebusprint(void *aux, const char *name)
|
||||
{
|
||||
struct podule_attach_args *pa = aux;
|
||||
|
||||
|
@ -128,11 +123,7 @@ podulebusprint(aux, name)
|
|||
|
||||
|
||||
int
|
||||
podulebussubmatch(parent, cf, ldesc, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
const int *ldesc;
|
||||
void *aux;
|
||||
podulebussubmatch(struct device *parent, struct cfdata *cf, const int *ldesc, void *aux)
|
||||
{
|
||||
struct podule_attach_args *pa = aux;
|
||||
|
||||
|
@ -153,8 +144,7 @@ podulebussubmatch(parent, cf, ldesc, aux)
|
|||
|
||||
#if 0
|
||||
void
|
||||
dump_podule(podule)
|
||||
podule_t *podule;
|
||||
dump_podule(podule_t *podule)
|
||||
{
|
||||
printf("podule%d: ", podule->podulenum);
|
||||
printf("flags0=%02x ", podule->flags0);
|
||||
|
@ -182,8 +172,7 @@ dump_podule(podule)
|
|||
#endif
|
||||
|
||||
void
|
||||
podulechunkdirectory(podule)
|
||||
podule_t *podule;
|
||||
podulechunkdirectory(podule_t *podule)
|
||||
{
|
||||
u_int address;
|
||||
u_int id;
|
||||
|
@ -237,10 +226,7 @@ podulechunkdirectory(podule)
|
|||
|
||||
|
||||
void
|
||||
poduleexamine(podule, dev, slottype)
|
||||
podule_t *podule;
|
||||
struct device *dev;
|
||||
int slottype;
|
||||
poduleexamine(podule_t *podule, struct device *dev, int slottype)
|
||||
{
|
||||
struct manufacturer_description *man_desc;
|
||||
struct podule_description *pod_desc;
|
||||
|
@ -307,17 +293,14 @@ poduleexamine(podule, dev, slottype)
|
|||
|
||||
|
||||
u_int
|
||||
poduleread(address, offset)
|
||||
u_int address;
|
||||
int offset;
|
||||
poduleread(u_int address, int offset)
|
||||
{
|
||||
|
||||
return(ReadByte(address + offset));
|
||||
}
|
||||
|
||||
void
|
||||
podulescan(dev)
|
||||
struct device *dev;
|
||||
podulescan(struct device *dev)
|
||||
{
|
||||
int loop;
|
||||
podule_t *podule;
|
||||
|
@ -418,10 +401,7 @@ podulescan(dev)
|
|||
*/
|
||||
|
||||
void
|
||||
podulebusattach(parent, self, aux)
|
||||
struct device *parent;
|
||||
struct device *self;
|
||||
void *aux;
|
||||
podulebusattach(struct device *parent, struct device *self, void *aux)
|
||||
{
|
||||
int loop;
|
||||
struct podule_attach_args pa;
|
||||
|
@ -543,11 +523,7 @@ CFATTACH_DECL(podulebus, sizeof(struct device),
|
|||
*/
|
||||
|
||||
int
|
||||
matchpodule(pa, manufacturer, product, required_slot)
|
||||
struct podule_attach_args *pa;
|
||||
int manufacturer;
|
||||
int product;
|
||||
int required_slot;
|
||||
matchpodule(struct podule_attach_args *pa, int manufacturer, int product, int required_slot)
|
||||
{
|
||||
if (pa->pa_podule->attached)
|
||||
panic("podulebus: Podule already attached");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ptsc.c,v 1.14 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: ptsc.c,v 1.15 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1990 The Regents of the University of California.
|
||||
|
@ -75,7 +75,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ptsc.c,v 1.14 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ptsc.c,v 1.15 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -118,10 +118,7 @@ void ptsc_set_dma_mode(struct sfas_softc *, int);
|
|||
* if we are a Power-tec SCSI-2 card
|
||||
*/
|
||||
int
|
||||
ptscmatch(pdp, cf, auxp)
|
||||
struct device *pdp;
|
||||
struct cfdata *cf;
|
||||
void *auxp;
|
||||
ptscmatch(struct device *pdp, struct cfdata *cf, void *auxp)
|
||||
{
|
||||
struct podule_attach_args *pa = (struct podule_attach_args *)auxp;
|
||||
|
||||
|
@ -141,10 +138,7 @@ ptscmatch(pdp, cf, auxp)
|
|||
}
|
||||
|
||||
void
|
||||
ptscattach(pdp, dp, auxp)
|
||||
struct device *pdp;
|
||||
struct device *dp;
|
||||
void *auxp;
|
||||
ptscattach(struct device *pdp, struct device *dp, void *auxp)
|
||||
{
|
||||
struct ptsc_softc *sc = (struct ptsc_softc *)dp;
|
||||
struct podule_attach_args *pa;
|
||||
|
@ -249,8 +243,7 @@ ptscattach(pdp, dp, auxp)
|
|||
|
||||
|
||||
int
|
||||
ptsc_intr(arg)
|
||||
void *arg;
|
||||
ptsc_intr(void *arg)
|
||||
{
|
||||
struct sfas_softc *dev = arg;
|
||||
ptsc_regmap_p rp;
|
||||
|
@ -280,9 +273,7 @@ ptsc_intr(arg)
|
|||
|
||||
/* Load transfer address into DMA register */
|
||||
void
|
||||
ptsc_set_dma_adr(sc, ptr)
|
||||
struct sfas_softc *sc;
|
||||
void *ptr;
|
||||
ptsc_set_dma_adr(struct sfas_softc *sc, void *ptr)
|
||||
{
|
||||
#if 0
|
||||
ptsc_regmap_p rp;
|
||||
|
@ -306,9 +297,7 @@ ptsc_set_dma_adr(sc, ptr)
|
|||
|
||||
/* Set DMA transfer counter */
|
||||
void
|
||||
ptsc_set_dma_tc(sc, len)
|
||||
struct sfas_softc *sc;
|
||||
unsigned int len;
|
||||
ptsc_set_dma_tc(struct sfas_softc *sc, unsigned int len)
|
||||
{
|
||||
printf("ptsc_set_dma_tc(sc, len = 0x%08x)", len);
|
||||
|
||||
|
@ -319,9 +308,7 @@ ptsc_set_dma_tc(sc, len)
|
|||
|
||||
/* Set DMA mode */
|
||||
void
|
||||
ptsc_set_dma_mode(sc, mode)
|
||||
struct sfas_softc *sc;
|
||||
int mode;
|
||||
ptsc_set_dma_mode(struct sfas_softc *sc, int mode)
|
||||
{
|
||||
#if 0
|
||||
struct csc_specific *spec;
|
||||
|
@ -335,11 +322,7 @@ ptsc_set_dma_mode(sc, mode)
|
|||
|
||||
/* Initialize DMA for transfer */
|
||||
int
|
||||
ptsc_setup_dma(v, ptr, len, mode)
|
||||
void *v;
|
||||
void *ptr;
|
||||
int len;
|
||||
int mode;
|
||||
ptsc_setup_dma(void *v, void *ptr, int len, int mode)
|
||||
{
|
||||
return(0);
|
||||
|
||||
|
@ -382,10 +365,7 @@ ptsc_setup_dma(v, ptr, len, mode)
|
|||
|
||||
/* Check if address and len is ok for DMA transfer */
|
||||
int
|
||||
ptsc_need_bump(v, ptr, len)
|
||||
void *v;
|
||||
void *ptr;
|
||||
int len;
|
||||
ptsc_need_bump(void *v, void *ptr, int len)
|
||||
{
|
||||
int p;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sfas.c,v 1.16 2006/03/08 23:46:22 lukem Exp $ */
|
||||
/* $NetBSD: sfas.c,v 1.17 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
|
@ -82,7 +82,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sfas.c,v 1.16 2006/03/08 23:46:22 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sfas.c,v 1.17 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -149,8 +149,7 @@ int sfas_debug = 2;
|
|||
* default minphys routine for sfas based controllers
|
||||
*/
|
||||
void
|
||||
sfas_minphys(bp)
|
||||
struct buf *bp;
|
||||
sfas_minphys(struct buf *bp)
|
||||
{
|
||||
|
||||
/*
|
||||
|
@ -163,9 +162,7 @@ sfas_minphys(bp)
|
|||
* Initialize the nexus structs.
|
||||
*/
|
||||
void
|
||||
sfas_init_nexus(dev, nexus)
|
||||
struct sfas_softc *dev;
|
||||
struct nexus *nexus;
|
||||
sfas_init_nexus(struct sfas_softc *dev, struct nexus *nexus)
|
||||
{
|
||||
bzero(nexus, sizeof(struct nexus));
|
||||
|
||||
|
@ -178,8 +175,7 @@ sfas_init_nexus(dev, nexus)
|
|||
}
|
||||
|
||||
void
|
||||
sfasinitialize(dev)
|
||||
struct sfas_softc *dev;
|
||||
sfasinitialize(struct sfas_softc *dev)
|
||||
{
|
||||
u_int *pte;
|
||||
int i;
|
||||
|
@ -320,9 +316,7 @@ sfas_scsi_request(struct scsipi_channel *chan, scsipi_adapter_req_t req,
|
|||
* Actually select the unit, whereby the whole scsi-process is started.
|
||||
*/
|
||||
void
|
||||
sfas_donextcmd(dev, pendp)
|
||||
struct sfas_softc *dev;
|
||||
struct sfas_pending *pendp;
|
||||
sfas_donextcmd(struct sfas_softc *dev, struct sfas_pending *pendp)
|
||||
{
|
||||
int s;
|
||||
|
||||
|
@ -374,10 +368,7 @@ sfas_donextcmd(dev, pendp)
|
|||
}
|
||||
|
||||
void
|
||||
sfas_scsidone(dev, xs, stat)
|
||||
struct sfas_softc *dev;
|
||||
struct scsipi_xfer *xs;
|
||||
int stat;
|
||||
sfas_scsidone(struct sfas_softc *dev, struct scsipi_xfer *xs, int stat)
|
||||
{
|
||||
struct sfas_pending *pendp;
|
||||
int s;
|
||||
|
@ -431,9 +422,7 @@ sfas_scsidone(dev, xs, stat)
|
|||
* delay time.
|
||||
*/
|
||||
void
|
||||
sfasreset(dev, how)
|
||||
struct sfas_softc *dev;
|
||||
int how;
|
||||
sfasreset(struct sfas_softc *dev, int how)
|
||||
{
|
||||
sfas_regmap_p rp;
|
||||
int i, s;
|
||||
|
@ -489,8 +478,7 @@ sfasreset(dev, how)
|
|||
* Save active data pointers to the nexus block currently active.
|
||||
*/
|
||||
void
|
||||
sfas_save_pointers(dev)
|
||||
struct sfas_softc *dev;
|
||||
sfas_save_pointers(struct sfas_softc *dev)
|
||||
{
|
||||
struct nexus *nx;
|
||||
|
||||
|
@ -512,8 +500,7 @@ sfas_save_pointers(dev)
|
|||
* Restore data pointers from the currently active nexus block.
|
||||
*/
|
||||
void
|
||||
sfas_restore_pointers(dev)
|
||||
struct sfas_softc *dev;
|
||||
sfas_restore_pointers(struct sfas_softc *dev)
|
||||
{
|
||||
struct nexus *nx;
|
||||
|
||||
|
@ -539,8 +526,7 @@ sfas_restore_pointers(dev)
|
|||
* the FAS chip. This function MUST NOT BE CALLED without interrupt disabled.
|
||||
*/
|
||||
void
|
||||
sfasiwait(dev)
|
||||
struct sfas_softc *dev;
|
||||
sfasiwait(struct sfas_softc *dev)
|
||||
{
|
||||
sfas_regmap_p rp;
|
||||
|
||||
|
@ -573,9 +559,7 @@ sfasiwait(dev)
|
|||
* rules that apply to sfasiwait also applies here.
|
||||
*/
|
||||
void
|
||||
sfas_ixfer(v, polling)
|
||||
void *v;
|
||||
int polling;
|
||||
sfas_ixfer(void *v, int polling)
|
||||
{
|
||||
struct sfas_softc *dev = v;
|
||||
sfas_regmap_p rp;
|
||||
|
@ -629,10 +613,7 @@ sfas_ixfer(v, polling)
|
|||
* Build a Synchronous Data Transfer Request message
|
||||
*/
|
||||
void
|
||||
sfas_build_sdtrm(dev, period, offset)
|
||||
struct sfas_softc *dev;
|
||||
int period;
|
||||
int offset;
|
||||
sfas_build_sdtrm(struct sfas_softc *dev, int period, int offset)
|
||||
{
|
||||
dev->sc_msg_out[0] = 0x01;
|
||||
dev->sc_msg_out[1] = 0x03;
|
||||
|
@ -646,9 +627,7 @@ sfas_build_sdtrm(dev, period, offset)
|
|||
* Arbitate the scsi bus and select the unit
|
||||
*/
|
||||
int
|
||||
sfas_select_unit(dev, target)
|
||||
struct sfas_softc *dev;
|
||||
short target;
|
||||
sfas_select_unit(struct sfas_softc *dev, short target)
|
||||
{
|
||||
sfas_regmap_p rp;
|
||||
struct nexus *nexus;
|
||||
|
@ -709,9 +688,7 @@ sfas_select_unit(dev, target)
|
|||
* Grab the nexus if available else return 0.
|
||||
*/
|
||||
struct nexus *
|
||||
sfas_arbitate_target(dev, target)
|
||||
struct sfas_softc *dev;
|
||||
int target;
|
||||
sfas_arbitate_target(struct sfas_softc *dev, int target)
|
||||
{
|
||||
struct nexus *nexus;
|
||||
int s;
|
||||
|
@ -737,15 +714,7 @@ sfas_arbitate_target(dev, target)
|
|||
* Setup a nexus for use. Initializes command, buffer pointers and DMA chain.
|
||||
*/
|
||||
void
|
||||
sfas_setup_nexus(dev, nexus, pendp, cbuf, clen, buf, len, mode)
|
||||
struct sfas_softc *dev;
|
||||
struct nexus *nexus;
|
||||
struct sfas_pending *pendp;
|
||||
unsigned char *cbuf;
|
||||
int clen;
|
||||
unsigned char *buf;
|
||||
int len;
|
||||
int mode;
|
||||
sfas_setup_nexus(struct sfas_softc *dev, struct nexus *nexus, struct sfas_pending *pendp, unsigned char *cbuf, int clen, unsigned char *buf, int len, int mode)
|
||||
{
|
||||
char sync, target, lun;
|
||||
|
||||
|
@ -846,14 +815,7 @@ sfas_setup_nexus(dev, nexus, pendp, cbuf, clen, buf, len, mode)
|
|||
}
|
||||
|
||||
int
|
||||
sfasselect(dev, pendp, cbuf, clen, buf, len, mode)
|
||||
struct sfas_softc *dev;
|
||||
struct sfas_pending *pendp;
|
||||
unsigned char *cbuf;
|
||||
int clen;
|
||||
unsigned char *buf;
|
||||
int len;
|
||||
int mode;
|
||||
sfasselect(struct sfas_softc *dev, struct sfas_pending *pendp, unsigned char *cbuf, int clen, unsigned char *buf, int len, int mode)
|
||||
{
|
||||
struct nexus *nexus;
|
||||
|
||||
|
@ -872,9 +834,7 @@ sfasselect(dev, pendp, cbuf, clen, buf, len, mode)
|
|||
}
|
||||
|
||||
void
|
||||
sfasgo(dev, pendp)
|
||||
struct sfas_softc *dev;
|
||||
struct sfas_pending *pendp;
|
||||
sfasgo(struct sfas_softc *dev, struct sfas_pending *pendp)
|
||||
{
|
||||
int s;
|
||||
char *buf;
|
||||
|
@ -911,9 +871,7 @@ sfasgo(dev, pendp)
|
|||
* We don't know if we have an active nexus here!
|
||||
*/
|
||||
int
|
||||
sfas_pretests(dev, rp)
|
||||
struct sfas_softc *dev;
|
||||
sfas_regmap_p rp;
|
||||
sfas_pretests(struct sfas_softc *dev, sfas_regmap_p rp)
|
||||
{
|
||||
struct nexus *nexus;
|
||||
int i, s;
|
||||
|
@ -1013,10 +971,7 @@ sfas_pretests(dev, rp)
|
|||
* processing. We know that we have an active nexus here.
|
||||
*/
|
||||
int
|
||||
sfas_midaction(dev, rp, nexus)
|
||||
struct sfas_softc *dev;
|
||||
sfas_regmap_p rp;
|
||||
struct nexus *nexus;
|
||||
sfas_midaction(struct sfas_softc *dev, sfas_regmap_p rp, struct nexus *nexus)
|
||||
{
|
||||
int i, left, len, s;
|
||||
u_char status, msg;
|
||||
|
@ -1233,10 +1188,7 @@ sfas_midaction(dev, rp, nexus)
|
|||
* phase passes). We know that we have an active nexus here.
|
||||
*/
|
||||
int
|
||||
sfas_postaction(dev, rp, nexus)
|
||||
struct sfas_softc *dev;
|
||||
sfas_regmap_p rp;
|
||||
struct nexus *nexus;
|
||||
sfas_postaction(struct sfas_softc *dev, sfas_regmap_p rp, struct nexus *nexus)
|
||||
{
|
||||
int i, len;
|
||||
u_char cmd;
|
||||
|
@ -1558,8 +1510,7 @@ sfas_postaction(dev, rp, nexus)
|
|||
* Stub for interrupt machine.
|
||||
*/
|
||||
void
|
||||
sfasintr(dev)
|
||||
struct sfas_softc *dev;
|
||||
sfasintr(struct sfas_softc *dev)
|
||||
{
|
||||
sfas_regmap_p rp;
|
||||
struct nexus *nexus;
|
||||
|
@ -1584,9 +1535,7 @@ sfasintr(dev)
|
|||
* sfasintr.
|
||||
*/
|
||||
void
|
||||
sfasicmd(dev, pendp)
|
||||
struct sfas_softc *dev;
|
||||
struct sfas_pending *pendp;
|
||||
sfasicmd(struct sfas_softc *dev, struct sfas_pending *pendp)
|
||||
{
|
||||
sfas_regmap_p rp;
|
||||
struct nexus *nexus;
|
||||
|
@ -1611,8 +1560,7 @@ sfasicmd(dev, pendp)
|
|||
#ifdef SFAS_DEBUG
|
||||
|
||||
void
|
||||
dump_nexus(nexus)
|
||||
struct nexus *nexus;
|
||||
dump_nexus(struct nexus *nexus)
|
||||
{
|
||||
int loop;
|
||||
|
||||
|
@ -1653,8 +1601,7 @@ dump_nexus(nexus)
|
|||
}
|
||||
|
||||
void
|
||||
dump_nexii(sc)
|
||||
struct sfas_softc *sc;
|
||||
dump_nexii(struct sfas_softc *sc)
|
||||
{
|
||||
int loop;
|
||||
|
||||
|
@ -1664,8 +1611,7 @@ dump_nexii(sc)
|
|||
}
|
||||
|
||||
void
|
||||
dump_sfassoftc(sc)
|
||||
struct sfas_softc *sc;
|
||||
dump_sfassoftc(struct sfas_softc *sc)
|
||||
{
|
||||
printf("sfassoftc @ 0x%08x\n", (u_int)sc);
|
||||
printf("clock_freq = %d\n", sc->sc_clock_freq);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pcib.c,v 1.19 2008/04/28 20:23:10 martin Exp $ */
|
||||
/* $NetBSD: pcib.c,v 1.20 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.19 2008/04/28 20:23:10 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.20 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include "opt_algor_p5064.h"
|
||||
#include "opt_algor_p6032.h"
|
||||
|
@ -289,8 +289,7 @@ pcib_attach(struct device *parent, struct device *self, void *aux)
|
|||
}
|
||||
|
||||
void
|
||||
pcib_bridge_callback(self)
|
||||
struct device *self;
|
||||
pcib_bridge_callback(struct device *self)
|
||||
{
|
||||
struct pcib_softc *sc = (struct pcib_softc *)self;
|
||||
struct isabus_attach_args iba;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: a12dc.c,v 1.20 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: a12dc.c,v 1.21 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/* [Notice revision 2.2]
|
||||
* Copyright (c) 1997, 1998 Avalon Computer Systems, Inc.
|
||||
|
@ -64,7 +64,7 @@
|
|||
#ifndef BSIDE
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: a12dc.c,v 1.20 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: a12dc.c,v 1.21 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -142,10 +142,7 @@ static void a12_worry(int worry_number);
|
|||
static void A12InitBackDriver(int);
|
||||
|
||||
int
|
||||
a12dcmatch(parent, match, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *match;
|
||||
void *aux;
|
||||
a12dcmatch(struct device *parent, struct cfdata *match, void *aux)
|
||||
{
|
||||
struct pcibus_attach_args *pba = aux;
|
||||
|
||||
|
@ -164,7 +161,7 @@ a12dcattach(parent, self, aux)
|
|||
/* note that we've attached the chipset; can't have 2 A12Cs. */
|
||||
a12dcfound = 1;
|
||||
|
||||
printf(": driver %s\n", "$Revision: 1.20 $");
|
||||
printf(": driver %s\n", "$Revision: 1.21 $");
|
||||
|
||||
tp = a12dc_tty[0] = ttymalloc();
|
||||
tp->t_oproc = a12dcstart;
|
||||
|
@ -176,9 +173,7 @@ a12dcattach(parent, self, aux)
|
|||
}
|
||||
|
||||
void
|
||||
a12dc_init(ccp, mallocsafe)
|
||||
struct a12dc_config *ccp;
|
||||
int mallocsafe;
|
||||
a12dc_init(struct a12dc_config *ccp, int mallocsafe)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -327,10 +322,7 @@ a12dcclose(dev, flag, mode, p)
|
|||
}
|
||||
|
||||
int
|
||||
a12dcread(dev, uio, flag)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
int flag;
|
||||
a12dcread(dev_t dev, struct uio *uio, int flag)
|
||||
{
|
||||
struct tty *tp = a12dc_tty[minor(dev)];
|
||||
|
||||
|
@ -338,10 +330,7 @@ a12dcread(dev, uio, flag)
|
|||
}
|
||||
|
||||
int
|
||||
a12dcwrite(dev, uio, flag)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
int flag;
|
||||
a12dcwrite(dev_t dev, struct uio *uio, int flag)
|
||||
{
|
||||
struct tty *tp = a12dc_tty[minor(dev)];
|
||||
|
||||
|
@ -349,10 +338,7 @@ a12dcwrite(dev, uio, flag)
|
|||
}
|
||||
|
||||
int
|
||||
a12dcpoll(dev, events, p)
|
||||
dev_t dev;
|
||||
int events;
|
||||
struct proc *p;
|
||||
a12dcpoll(dev_t dev, int events, struct proc *p)
|
||||
{
|
||||
struct tty *tp = a12dc_tty[minor(dev)];
|
||||
|
||||
|
@ -360,12 +346,7 @@ a12dcpoll(dev, events, p)
|
|||
}
|
||||
|
||||
int
|
||||
a12dcioctl(dev, cmd, data, flag, p)
|
||||
dev_t dev;
|
||||
u_long cmd;
|
||||
void *data;
|
||||
int flag;
|
||||
struct proc *p;
|
||||
a12dcioctl(dev_t dev, u_long cmd, void *data, int flag, struct proc *p)
|
||||
{
|
||||
int unit = minor(dev);
|
||||
struct tty *tp = a12dc_tty[unit];
|
||||
|
@ -378,16 +359,13 @@ a12dcioctl(dev, cmd, data, flag, p)
|
|||
}
|
||||
|
||||
int
|
||||
a12dcparam(tp, t)
|
||||
struct tty *tp;
|
||||
struct termios *t;
|
||||
a12dcparam(struct tty *tp, struct termios *t)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
a12dcstart(tp)
|
||||
struct tty *tp;
|
||||
a12dcstart(struct tty *tp)
|
||||
{
|
||||
int s;
|
||||
|
||||
|
@ -407,8 +385,7 @@ out:
|
|||
* Stop output on a line.
|
||||
*/
|
||||
void
|
||||
a12dcstop(tp, flag)
|
||||
struct tty *tp;
|
||||
a12dcstop(struct tty *tp, flag)
|
||||
{
|
||||
int s;
|
||||
|
||||
|
@ -420,8 +397,7 @@ a12dcstop(tp, flag)
|
|||
}
|
||||
|
||||
int
|
||||
a12dcintr(v)
|
||||
void *v;
|
||||
a12dcintr(void *v)
|
||||
{
|
||||
#if 1
|
||||
DIE();
|
||||
|
@ -437,8 +413,7 @@ a12dcintr(v)
|
|||
}
|
||||
|
||||
struct tty *
|
||||
a12dctty(dev)
|
||||
dev_t dev;
|
||||
a12dctty(dev_t dev)
|
||||
{
|
||||
|
||||
if (minor(dev) != 0)
|
||||
|
@ -462,25 +437,20 @@ a12dccnattach()
|
|||
}
|
||||
|
||||
int
|
||||
a12dccngetc(dev)
|
||||
dev_t dev;
|
||||
a12dccngetc(dev_t dev)
|
||||
{
|
||||
for(;;)
|
||||
continue;
|
||||
}
|
||||
|
||||
void
|
||||
a12dccnputc(dev, c)
|
||||
dev_t dev;
|
||||
int c;
|
||||
a12dccnputc(dev_t dev, int c)
|
||||
{
|
||||
a12cdrputc(c);
|
||||
}
|
||||
|
||||
void
|
||||
a12dccnpollc(dev, on)
|
||||
dev_t dev;
|
||||
int on;
|
||||
a12dccnpollc(dev_t dev, int on)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_xb.c,v 1.20 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: if_xb.c,v 1.21 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/* [Notice revision 2.2]
|
||||
* Copyright (c) 1997, 1998 Avalon Computer Systems, Inc.
|
||||
|
@ -74,7 +74,7 @@
|
|||
#include "opt_avalon_a12.h" /* Config options headers */
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_xb.c,v 1.20 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_xb.c,v 1.21 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -210,10 +210,7 @@ static void a12_xbar_setup(void);
|
|||
int xbfound;
|
||||
|
||||
int
|
||||
xbmatch(parent, match, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *match;
|
||||
void *aux;
|
||||
xbmatch(struct device *parent, struct cfdata *match, void *aux)
|
||||
{
|
||||
|
||||
return cputype == ST_AVALON_A12
|
||||
|
@ -231,13 +228,11 @@ xbattach(parent, self, aux)
|
|||
xbfound = 1;
|
||||
ccp = &xb_configuration;
|
||||
xb_init_config(ccp, 1);
|
||||
printf(": driver %s mtu %lu\n", "$Revision: 1.20 $", xbi.if_mtu);
|
||||
printf(": driver %s mtu %lu\n", "$Revision: 1.21 $", xbi.if_mtu);
|
||||
}
|
||||
|
||||
static void
|
||||
xb_init_config(ccp, mallocsafe)
|
||||
struct xb_config *ccp;
|
||||
int mallocsafe;
|
||||
xb_init_config(struct xb_config *ccp, int mallocsafe)
|
||||
{
|
||||
/*
|
||||
* The driver actually only needs about 64 bytes of buffer but with a
|
||||
|
@ -284,8 +279,7 @@ xb_init_config(ccp, mallocsafe)
|
|||
*
|
||||
*/
|
||||
static int
|
||||
xb_intr(p)
|
||||
void *p;
|
||||
xb_intr(void *p)
|
||||
{
|
||||
int n;
|
||||
long mcsrval;
|
||||
|
@ -407,8 +401,7 @@ xb_onefree()
|
|||
}
|
||||
|
||||
static void
|
||||
xb_init(ifp)
|
||||
struct ifnet *ifp;
|
||||
xb_init(struct ifnet *ifp)
|
||||
{
|
||||
ifp->if_flags |= IFF_RUNNING;
|
||||
}
|
||||
|
@ -472,11 +465,7 @@ xb_fifo_empty(void)
|
|||
* [ ... data : length ]
|
||||
*/
|
||||
static int
|
||||
xb_output(ifp, m0, dst, rt0)
|
||||
struct ifnet *ifp;
|
||||
struct mbuf *m0;
|
||||
const struct sockaddr *dst;
|
||||
struct rtentry *rt0;
|
||||
xb_output(struct ifnet *ifp, struct mbuf *m0, const struct sockaddr *dst, struct rtentry *rt0)
|
||||
{
|
||||
int i,s;
|
||||
struct mbuf *m = m0;
|
||||
|
@ -564,8 +553,7 @@ xb_output(ifp, m0, dst, rt0)
|
|||
}
|
||||
|
||||
void
|
||||
xb_start(ifp)
|
||||
struct ifnet *ifp;
|
||||
xb_start(struct ifnet *ifp)
|
||||
{
|
||||
struct mbuf *m;
|
||||
|
||||
|
@ -589,8 +577,7 @@ xb_start(ifp)
|
|||
}
|
||||
|
||||
static int
|
||||
xb_put(m)
|
||||
struct mbuf *m;
|
||||
xb_put(struct mbuf *m)
|
||||
{
|
||||
struct mbuf *n;
|
||||
int len;
|
||||
|
@ -615,8 +602,7 @@ xb_put(m)
|
|||
* alignment. Of course, we don't DMA at all, right now.
|
||||
*/
|
||||
static int
|
||||
xb_put_blk(m)
|
||||
struct mbuf *m;
|
||||
xb_put_blk(struct mbuf *m)
|
||||
{
|
||||
static long leftover[2]; /* 0-15 bytes from last xb_put_blk() */
|
||||
static int leftover_len; /* non-aligned amount from last call */
|
||||
|
@ -721,8 +707,7 @@ set_interrupt_on_fifo_empty(void)
|
|||
* Write an aligned block of switch words to the FIFO
|
||||
*/
|
||||
Static void
|
||||
xb_mcrp_write(d, n, islast)
|
||||
long *d;
|
||||
xb_mcrp_write(long *d, n, islast)
|
||||
{
|
||||
volatile long *xb_fifo = islast ? REGADDR(A12_FIFO_LWE)
|
||||
: REGADDR(A12_FIFO);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: api_up1000.c,v 1.24 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: api_up1000.c,v 1.25 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: api_up1000.c,v 1.24 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: api_up1000.c,v 1.25 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -170,9 +170,7 @@ api_up1000_cons_init()
|
|||
}
|
||||
|
||||
static void
|
||||
api_up1000_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
api_up1000_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *pcidev, *ctrlrdev;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.c,v 1.45 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.46 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -42,7 +42,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.45 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.46 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -164,8 +164,7 @@ parse_prom_bootdev()
|
|||
}
|
||||
|
||||
int
|
||||
atoi(s)
|
||||
char *s;
|
||||
atoi(char *s)
|
||||
{
|
||||
int n, neg;
|
||||
|
||||
|
@ -189,9 +188,7 @@ atoi(s)
|
|||
}
|
||||
|
||||
void
|
||||
device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
device_register(struct device *dev, void *aux)
|
||||
{
|
||||
if (bootdev_data == NULL) {
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: avalon_a12.c,v 1.14 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: avalon_a12.c,v 1.15 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/* [Notice revision 2.2]
|
||||
* Copyright (c) 1997, 1998 Avalon Computer Systems, Inc.
|
||||
|
@ -64,7 +64,7 @@
|
|||
#include "opt_avalon_a12.h" /* Config options headers */
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: avalon_a12.c,v 1.14 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: avalon_a12.c,v 1.15 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -123,8 +123,7 @@ avalon_a12_init()
|
|||
* call.
|
||||
*/
|
||||
static int
|
||||
a12env(code)
|
||||
int code;
|
||||
a12env(int code)
|
||||
{
|
||||
int q;
|
||||
char string[16];
|
||||
|
@ -146,9 +145,7 @@ avalon_a12_cons_init()
|
|||
}
|
||||
|
||||
void
|
||||
avalon_a12_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
avalon_a12_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *pcidev, *ctrlrdev;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: clock.c,v 1.39 2008/04/05 18:17:36 tsutsui Exp $ */
|
||||
/* $NetBSD: clock.c,v 1.40 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -78,7 +78,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.39 2008/04/05 18:17:36 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.40 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
|
@ -154,8 +154,7 @@ cpu_initclocks(void)
|
|||
* but that would be a drag.
|
||||
*/
|
||||
void
|
||||
setstatclockrate(newhz)
|
||||
int newhz;
|
||||
setstatclockrate(int newhz)
|
||||
{
|
||||
|
||||
/* nothing we can do */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cpu.c,v 1.84 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: cpu.c,v 1.85 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -59,7 +59,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.84 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.85 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
|
@ -177,10 +177,7 @@ struct cputable_struct {
|
|||
*/
|
||||
|
||||
static int
|
||||
cpumatch(parent, cfdata, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cfdata;
|
||||
void *aux;
|
||||
cpumatch(struct device *parent, struct cfdata *cfdata, void *aux)
|
||||
{
|
||||
struct mainbus_attach_args *ma = aux;
|
||||
|
||||
|
@ -195,10 +192,7 @@ cpumatch(parent, cfdata, aux)
|
|||
}
|
||||
|
||||
static void
|
||||
cpuattach(parent, self, aux)
|
||||
struct device *parent;
|
||||
struct device *self;
|
||||
void *aux;
|
||||
cpuattach(struct device *parent, struct device *self, void *aux)
|
||||
{
|
||||
struct cpu_softc *sc = (void *) self;
|
||||
struct mainbus_attach_args *ma = aux;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_interface.c,v 1.28 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: db_interface.c,v 1.29 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -52,7 +52,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.28 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.29 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
|
@ -227,10 +227,7 @@ ddb_trap(a0, a1, a2, entry, regs)
|
|||
* Read bytes from kernel address space for debugger.
|
||||
*/
|
||||
void
|
||||
db_read_bytes(addr, size, data)
|
||||
vaddr_t addr;
|
||||
register size_t size;
|
||||
register char *data;
|
||||
db_read_bytes(vaddr_t addr, register size_t size, register char *data)
|
||||
{
|
||||
register char *src;
|
||||
|
||||
|
@ -243,10 +240,7 @@ db_read_bytes(addr, size, data)
|
|||
* Write bytes to kernel address space for debugger.
|
||||
*/
|
||||
void
|
||||
db_write_bytes(addr, size, data)
|
||||
vaddr_t addr;
|
||||
register size_t size;
|
||||
register const char *data;
|
||||
db_write_bytes(vaddr_t addr, register size_t size, register const char *data)
|
||||
{
|
||||
register char *dst;
|
||||
|
||||
|
@ -272,11 +266,7 @@ cpu_Debugger()
|
|||
|
||||
#if defined(MULTIPROCESSOR)
|
||||
void
|
||||
db_mach_cpu(addr, have_addr, count, modif)
|
||||
db_expr_t addr;
|
||||
bool have_addr;
|
||||
db_expr_t count;
|
||||
const char * modif;
|
||||
db_mach_cpu(db_expr_t addr, bool have_addr, db_expr_t count, const char * modif)
|
||||
{
|
||||
struct cpu_info *ci;
|
||||
|
||||
|
@ -355,9 +345,7 @@ static int reg_to_frame[32] = {
|
|||
};
|
||||
|
||||
u_long
|
||||
db_register_value(regs, regno)
|
||||
db_regs_t *regs;
|
||||
int regno;
|
||||
db_register_value(db_regs_t *regs, int regno)
|
||||
{
|
||||
|
||||
if (regno > 31 || regno < 0) {
|
||||
|
@ -376,8 +364,7 @@ db_register_value(regs, regno)
|
|||
*/
|
||||
|
||||
bool
|
||||
db_inst_call(ins)
|
||||
int ins;
|
||||
db_inst_call(int ins)
|
||||
{
|
||||
alpha_instruction insn;
|
||||
|
||||
|
@ -388,8 +375,7 @@ db_inst_call(ins)
|
|||
}
|
||||
|
||||
bool
|
||||
db_inst_return(ins)
|
||||
int ins;
|
||||
db_inst_return(int ins)
|
||||
{
|
||||
alpha_instruction insn;
|
||||
|
||||
|
@ -399,8 +385,7 @@ db_inst_return(ins)
|
|||
}
|
||||
|
||||
bool
|
||||
db_inst_trap_return(ins)
|
||||
int ins;
|
||||
db_inst_trap_return(int ins)
|
||||
{
|
||||
alpha_instruction insn;
|
||||
|
||||
|
@ -410,8 +395,7 @@ db_inst_trap_return(ins)
|
|||
}
|
||||
|
||||
bool
|
||||
db_inst_branch(ins)
|
||||
int ins;
|
||||
db_inst_branch(int ins)
|
||||
{
|
||||
alpha_instruction insn;
|
||||
|
||||
|
@ -440,8 +424,7 @@ db_inst_branch(ins)
|
|||
}
|
||||
|
||||
bool
|
||||
db_inst_unconditional_flow_transfer(ins)
|
||||
int ins;
|
||||
db_inst_unconditional_flow_transfer(int ins)
|
||||
{
|
||||
alpha_instruction insn;
|
||||
|
||||
|
@ -477,8 +460,7 @@ db_inst_spill(ins, regn)
|
|||
#endif
|
||||
|
||||
bool
|
||||
db_inst_load(ins)
|
||||
int ins;
|
||||
db_inst_load(int ins)
|
||||
{
|
||||
alpha_instruction insn;
|
||||
|
||||
|
@ -508,8 +490,7 @@ db_inst_load(ins)
|
|||
}
|
||||
|
||||
bool
|
||||
db_inst_store(ins)
|
||||
int ins;
|
||||
db_inst_store(int ins)
|
||||
{
|
||||
alpha_instruction insn;
|
||||
|
||||
|
@ -537,10 +518,7 @@ db_inst_store(ins)
|
|||
}
|
||||
|
||||
db_addr_t
|
||||
db_branch_taken(ins, pc, regs)
|
||||
int ins;
|
||||
db_addr_t pc;
|
||||
db_regs_t *regs;
|
||||
db_branch_taken(int ins, db_addr_t pc, db_regs_t *regs)
|
||||
{
|
||||
long signed_immediate;
|
||||
alpha_instruction insn;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_1000a.c,v 1.27 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_1000a.c,v 1.28 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -65,7 +65,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_1000a.c,v 1.27 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_1000a.c,v 1.28 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -244,9 +244,7 @@ dec_1000a_cons_init()
|
|||
}
|
||||
|
||||
static void
|
||||
dec_1000a_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_1000a_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *pcidev, *ctrlrdev;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_2100_a50.c,v 1.62 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_2100_a50.c,v 1.63 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_2100_a50.c,v 1.62 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_2100_a50.c,v 1.63 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -194,9 +194,7 @@ dec_2100_a50_cons_init()
|
|||
}
|
||||
|
||||
static void
|
||||
dec_2100_a50_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_2100_a50_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *pcidev, *ctrlrdev;
|
||||
|
@ -291,11 +289,7 @@ dec_2100_a50_device_register(dev, aux)
|
|||
|
||||
|
||||
static void
|
||||
dec_2100_a50_mcheck(mces, type, logout, framep)
|
||||
unsigned long mces;
|
||||
unsigned long type;
|
||||
unsigned long logout;
|
||||
struct trapframe *framep;
|
||||
dec_2100_a50_mcheck(unsigned long mces, unsigned long type, unsigned long logout, struct trapframe *framep)
|
||||
{
|
||||
struct mchkinfo *mcp;
|
||||
static const char *fmt1 = " %-25s = 0x%016lx\n";
|
||||
|
@ -577,11 +571,7 @@ dec_2100_a50_mcheck(mces, type, logout, framep)
|
|||
}
|
||||
|
||||
static void
|
||||
dec_2100_a50_mcheck_handler(mces, framep, vector, param)
|
||||
unsigned long mces;
|
||||
struct trapframe *framep;
|
||||
unsigned long vector;
|
||||
unsigned long param;
|
||||
dec_2100_a50_mcheck_handler(unsigned long mces, struct trapframe *framep, unsigned long vector, unsigned long param)
|
||||
{
|
||||
switch (vector) {
|
||||
case ALPHA_SYS_MCHECK:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_3000_300.c,v 1.44 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_3000_300.c,v 1.45 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_3000_300.c,v 1.44 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_3000_300.c,v 1.45 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -143,9 +143,7 @@ dec_3000_300_cons_init()
|
|||
}
|
||||
|
||||
static void
|
||||
dec_3000_300_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_3000_300_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, scsiboot, netboot;
|
||||
static struct device *scsidev;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_3000_500.c,v 1.43 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_3000_500.c,v 1.44 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_3000_500.c,v 1.43 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_3000_500.c,v 1.44 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -163,9 +163,7 @@ dec_3000_500_cons_init()
|
|||
}
|
||||
|
||||
static void
|
||||
dec_3000_500_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_3000_500_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, scsiboot, netboot;
|
||||
static struct device *scsidev;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_550.c,v 1.31 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_550.c,v 1.32 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_550.c,v 1.31 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_550.c,v 1.32 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -181,9 +181,7 @@ dec_550_cons_init()
|
|||
}
|
||||
|
||||
static void
|
||||
dec_550_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_550_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *pcidev, *ctrlrdev;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_6600.c,v 1.27 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_6600.c,v 1.28 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_6600.c,v 1.27 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_6600.c,v 1.28 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -178,9 +178,7 @@ dec_6600_cons_init()
|
|||
}
|
||||
|
||||
static void
|
||||
dec_6600_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_6600_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *primarydev, *pcidev, *ctrlrdev;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_alphabook1.c,v 1.22 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_alphabook1.c,v 1.23 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_alphabook1.c,v 1.22 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_alphabook1.c,v 1.23 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -174,9 +174,7 @@ dec_alphabook1_cons_init()
|
|||
}
|
||||
|
||||
static void
|
||||
dec_alphabook1_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_alphabook1_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *pcidev, *ctrlrdev;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_axppci_33.c,v 1.62 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_axppci_33.c,v 1.63 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_axppci_33.c,v 1.62 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_axppci_33.c,v 1.63 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -228,9 +228,7 @@ dec_axppci_33_cons_init()
|
|||
}
|
||||
|
||||
static void
|
||||
dec_axppci_33_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_axppci_33_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *pcidev, *ctrlrdev;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_eb164.c,v 1.57 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_eb164.c,v 1.58 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_eb164.c,v 1.57 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_eb164.c,v 1.58 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -176,9 +176,7 @@ dec_eb164_cons_init()
|
|||
}
|
||||
|
||||
static void
|
||||
dec_eb164_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_eb164_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *pcidev, *ctrlrdev;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_eb64plus.c,v 1.37 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_eb64plus.c,v 1.38 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_eb64plus.c,v 1.37 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_eb64plus.c,v 1.38 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -184,9 +184,7 @@ dec_eb64plus_cons_init()
|
|||
}
|
||||
|
||||
static void
|
||||
dec_eb64plus_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_eb64plus_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *pcidev, *ctrlrdev;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_eb66.c,v 1.23 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_eb66.c,v 1.24 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_eb66.c,v 1.23 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_eb66.c,v 1.24 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -181,9 +181,7 @@ dec_eb66_cons_init()
|
|||
}
|
||||
|
||||
static void
|
||||
dec_eb66_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_eb66_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *pcidev, *ctrlrdev;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_kn20aa.c,v 1.60 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_kn20aa.c,v 1.61 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_kn20aa.c,v 1.60 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_kn20aa.c,v 1.61 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -183,9 +183,7 @@ dec_kn20aa_cons_init()
|
|||
}
|
||||
|
||||
static void
|
||||
dec_kn20aa_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_kn20aa_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *pcidev, *ctrlrdev;
|
||||
|
@ -279,11 +277,7 @@ dec_kn20aa_device_register(dev, aux)
|
|||
}
|
||||
|
||||
static void
|
||||
dec_kn20aa_mcheck(mces, type, logout, framep)
|
||||
unsigned long mces;
|
||||
unsigned long type;
|
||||
unsigned long logout;
|
||||
struct trapframe *framep;
|
||||
dec_kn20aa_mcheck(unsigned long mces, unsigned long type, unsigned long logout, struct trapframe *framep)
|
||||
{
|
||||
struct mchkinfo *mcp;
|
||||
mc_hdr_ev5 *hdr;
|
||||
|
@ -310,11 +304,7 @@ dec_kn20aa_mcheck(mces, type, logout, framep)
|
|||
}
|
||||
|
||||
static void
|
||||
dec_kn20aa_mcheck_handler(mces, framep, vector, param)
|
||||
unsigned long mces;
|
||||
struct trapframe *framep;
|
||||
unsigned long vector;
|
||||
unsigned long param;
|
||||
dec_kn20aa_mcheck_handler(unsigned long mces, struct trapframe *framep, unsigned long vector, unsigned long param)
|
||||
{
|
||||
|
||||
switch (vector) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_kn300.c,v 1.35 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_kn300.c,v 1.36 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 by Matthew Jacob
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_kn300.c,v 1.35 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_kn300.c,v 1.36 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -218,9 +218,7 @@ dec_kn300_cons_init()
|
|||
|
||||
/* #define BDEBUG 1 */
|
||||
static void
|
||||
dec_kn300_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_kn300_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *primarydev, *pcidev, *ctrlrdev;
|
||||
|
@ -393,11 +391,7 @@ typedef struct {
|
|||
#define CAP_ERR_CRDX 204
|
||||
|
||||
static void
|
||||
kn300_softerr(mces, type, logout, framep)
|
||||
unsigned long mces;
|
||||
unsigned long type;
|
||||
unsigned long logout;
|
||||
struct trapframe *framep;
|
||||
kn300_softerr(unsigned long mces, unsigned long type, unsigned long logout, struct trapframe *framep)
|
||||
{
|
||||
static const char *sys = "system";
|
||||
static const char *proc = "processor";
|
||||
|
@ -458,11 +452,7 @@ kn300_softerr(mces, type, logout, framep)
|
|||
*/
|
||||
|
||||
static void
|
||||
kn300_mcheck(mces, type, logout, framep)
|
||||
unsigned long mces;
|
||||
unsigned long type;
|
||||
unsigned long logout;
|
||||
struct trapframe *framep;
|
||||
kn300_mcheck(unsigned long mces, unsigned long type, unsigned long logout, struct trapframe *framep)
|
||||
{
|
||||
struct mchkinfo *mcp;
|
||||
static const char *fmt1 = " %-25s = 0x%l016x\n";
|
||||
|
@ -525,11 +515,7 @@ kn300_mcheck(mces, type, logout, framep)
|
|||
}
|
||||
|
||||
static void
|
||||
dec_kn300_mcheck_handler(mces, framep, vector, param)
|
||||
unsigned long mces;
|
||||
struct trapframe *framep;
|
||||
unsigned long vector;
|
||||
unsigned long param;
|
||||
dec_kn300_mcheck_handler(unsigned long mces, struct trapframe *framep, unsigned long vector, unsigned long param)
|
||||
{
|
||||
switch (vector) {
|
||||
case ALPHA_SYS_ERROR:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dec_kn8ae.c,v 1.38 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: dec_kn8ae.c,v 1.39 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 by Matthew Jacob
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_kn8ae.c,v 1.38 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dec_kn8ae.c,v 1.39 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -115,9 +115,7 @@ dec_kn8ae_cons_init()
|
|||
|
||||
/* #define BDEBUG 1 */
|
||||
static void
|
||||
dec_kn8ae_device_register(dev, aux)
|
||||
struct device *dev;
|
||||
void *aux;
|
||||
dec_kn8ae_device_register(struct device *dev, void *aux)
|
||||
{
|
||||
static int found, initted, diskboot, netboot;
|
||||
static struct device *primarydev, *pcidev, *ctrlrdev;
|
||||
|
@ -264,8 +262,7 @@ void kn8ae_mcheck(unsigned long, unsigned long,
|
|||
static void clear_tlsb_ebits(int);
|
||||
|
||||
static void
|
||||
clear_tlsb_ebits(cpuonly)
|
||||
int cpuonly;
|
||||
clear_tlsb_ebits(int cpuonly)
|
||||
{
|
||||
int node;
|
||||
u_int32_t tldev;
|
||||
|
@ -343,11 +340,7 @@ clear_tlsb_ebits(cpuonly)
|
|||
static const char *fmt1 = " %-25s = 0x%l016x\n";
|
||||
|
||||
void
|
||||
kn8ae_harderr(mces, type, logout, framep)
|
||||
unsigned long mces;
|
||||
unsigned long type;
|
||||
unsigned long logout;
|
||||
struct trapframe *framep;
|
||||
kn8ae_harderr(unsigned long mces, unsigned long type, unsigned long logout, struct trapframe *framep)
|
||||
{
|
||||
int whami, cpuwerr, dof_cnt;
|
||||
mc_hdr_ev5 *hdr;
|
||||
|
@ -426,11 +419,7 @@ kn8ae_harderr(mces, type, logout, framep)
|
|||
*/
|
||||
|
||||
static void
|
||||
kn8ae_softerr(mces, type, logout, framep)
|
||||
unsigned long mces;
|
||||
unsigned long type;
|
||||
unsigned long logout;
|
||||
struct trapframe *framep;
|
||||
kn8ae_softerr(unsigned long mces, unsigned long type, unsigned long logout, struct trapframe *framep)
|
||||
{
|
||||
int whami, cpuwerr, dof_cnt;
|
||||
mc_hdr_ev5 *hdr;
|
||||
|
@ -478,11 +467,7 @@ kn8ae_softerr(mces, type, logout, framep)
|
|||
*/
|
||||
|
||||
void
|
||||
kn8ae_mcheck(mces, type, logout, framep)
|
||||
unsigned long mces;
|
||||
unsigned long type;
|
||||
unsigned long logout;
|
||||
struct trapframe *framep;
|
||||
kn8ae_mcheck(unsigned long mces, unsigned long type, unsigned long logout, struct trapframe *framep)
|
||||
{
|
||||
struct mchkinfo *mcp;
|
||||
int get_dwlpx_regs;
|
||||
|
@ -583,11 +568,7 @@ kn8ae_mcheck(mces, type, logout, framep)
|
|||
}
|
||||
|
||||
static void
|
||||
dec_kn8ae_mcheck_handler(mces, framep, vector, param)
|
||||
unsigned long mces;
|
||||
struct trapframe *framep;
|
||||
unsigned long vector;
|
||||
unsigned long param;
|
||||
dec_kn8ae_mcheck_handler(unsigned long mces, struct trapframe *framep, unsigned long vector, unsigned long param)
|
||||
{
|
||||
switch (vector) {
|
||||
case ALPHA_SYS_ERROR:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.316 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.317 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -68,7 +68,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.316 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.317 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -898,9 +898,7 @@ alpha_dsr_sysname()
|
|||
* returning the model string on match.
|
||||
*/
|
||||
const char *
|
||||
alpha_variation_name(variation, avtp)
|
||||
u_int64_t variation;
|
||||
const struct alpha_variation_table *avtp;
|
||||
alpha_variation_name(u_int64_t variation, const struct alpha_variation_table *avtp)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -959,9 +957,7 @@ int waittime = -1;
|
|||
struct pcb dumppcb;
|
||||
|
||||
void
|
||||
cpu_reboot(howto, bootstr)
|
||||
int howto;
|
||||
char *bootstr;
|
||||
cpu_reboot(int howto, char *bootstr)
|
||||
{
|
||||
#if defined(MULTIPROCESSOR)
|
||||
u_long cpu_id = cpu_number();
|
||||
|
@ -1308,9 +1304,7 @@ err:
|
|||
}
|
||||
|
||||
void
|
||||
frametoreg(framep, regp)
|
||||
const struct trapframe *framep;
|
||||
struct reg *regp;
|
||||
frametoreg(const struct trapframe *framep, struct reg *regp)
|
||||
{
|
||||
|
||||
regp->r_regs[R_V0] = framep->tf_regs[FRAME_V0];
|
||||
|
@ -1348,9 +1342,7 @@ frametoreg(framep, regp)
|
|||
}
|
||||
|
||||
void
|
||||
regtoframe(regp, framep)
|
||||
const struct reg *regp;
|
||||
struct trapframe *framep;
|
||||
regtoframe(const struct reg *regp, struct trapframe *framep)
|
||||
{
|
||||
|
||||
framep->tf_regs[FRAME_V0] = regp->r_regs[R_V0];
|
||||
|
@ -1388,8 +1380,7 @@ regtoframe(regp, framep)
|
|||
}
|
||||
|
||||
void
|
||||
printregs(regp)
|
||||
struct reg *regp;
|
||||
printregs(struct reg *regp)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -1399,8 +1390,7 @@ printregs(regp)
|
|||
}
|
||||
|
||||
void
|
||||
regdump(framep)
|
||||
struct trapframe *framep;
|
||||
regdump(struct trapframe *framep)
|
||||
{
|
||||
struct reg reg;
|
||||
|
||||
|
@ -1601,10 +1591,7 @@ SYSCTL_SETUP(sysctl_machdep_setup, "sysctl machdep subtree setup")
|
|||
* Set registers on exec.
|
||||
*/
|
||||
void
|
||||
setregs(l, pack, stack)
|
||||
register struct lwp *l;
|
||||
struct exec_package *pack;
|
||||
u_long stack;
|
||||
setregs(register struct lwp *l, struct exec_package *pack, u_long stack)
|
||||
{
|
||||
struct trapframe *tfp = l->l_md.md_tf;
|
||||
#ifdef DEBUG
|
||||
|
@ -1749,8 +1736,7 @@ fpusave_proc(struct lwp *l, int save)
|
|||
* Wait "n" microseconds.
|
||||
*/
|
||||
void
|
||||
delay(n)
|
||||
unsigned long n;
|
||||
delay(unsigned long n)
|
||||
{
|
||||
unsigned long pcc0, pcc1, curcycle, cycles, usec;
|
||||
|
||||
|
@ -1789,10 +1775,7 @@ delay(n)
|
|||
|
||||
#ifdef EXEC_ECOFF
|
||||
void
|
||||
cpu_exec_ecoff_setregs(l, epp, stack)
|
||||
struct lwp *l;
|
||||
struct exec_package *epp;
|
||||
u_long stack;
|
||||
cpu_exec_ecoff_setregs(struct lwp *l, struct exec_package *epp, u_long stack)
|
||||
{
|
||||
struct ecoff_exechdr *execp = (struct ecoff_exechdr *)epp->ep_hdr;
|
||||
|
||||
|
@ -1807,9 +1790,7 @@ cpu_exec_ecoff_setregs(l, epp, stack)
|
|||
*
|
||||
*/
|
||||
int
|
||||
cpu_exec_ecoff_probe(l, epp)
|
||||
struct lwp *l;
|
||||
struct exec_package *epp;
|
||||
cpu_exec_ecoff_probe(struct lwp *l, struct exec_package *epp)
|
||||
{
|
||||
struct ecoff_exechdr *execp = (struct ecoff_exechdr *)epp->ep_hdr;
|
||||
int error;
|
||||
|
@ -1824,8 +1805,7 @@ cpu_exec_ecoff_probe(l, epp)
|
|||
#endif /* EXEC_ECOFF */
|
||||
|
||||
int
|
||||
alpha_pa_access(pa)
|
||||
u_long pa;
|
||||
alpha_pa_access(u_long pa)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -1862,8 +1842,7 @@ alpha_XXX_dmamap(v) /* XXX */
|
|||
/* XXX XXX END XXX XXX */
|
||||
|
||||
char *
|
||||
dot_conv(x)
|
||||
unsigned long x;
|
||||
dot_conv(unsigned long x)
|
||||
{
|
||||
int i;
|
||||
char *xc;
|
||||
|
@ -1884,10 +1863,7 @@ dot_conv(x)
|
|||
}
|
||||
|
||||
void
|
||||
cpu_getmcontext(l, mcp, flags)
|
||||
struct lwp *l;
|
||||
mcontext_t *mcp;
|
||||
unsigned int *flags;
|
||||
cpu_getmcontext(struct lwp *l, mcontext_t *mcp, unsigned int *flags)
|
||||
{
|
||||
struct trapframe *frame = l->l_md.md_tf;
|
||||
__greg_t *gr = mcp->__gregs;
|
||||
|
@ -1927,10 +1903,7 @@ cpu_getmcontext(l, mcp, flags)
|
|||
|
||||
|
||||
int
|
||||
cpu_setmcontext(l, mcp, flags)
|
||||
struct lwp *l;
|
||||
const mcontext_t *mcp;
|
||||
unsigned int flags;
|
||||
cpu_setmcontext(struct lwp *l, const mcontext_t *mcp, unsigned int flags)
|
||||
{
|
||||
struct trapframe *frame = l->l_md.md_tf;
|
||||
const __greg_t *gr = mcp->__gregs;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mem.c,v 1.39 2007/10/17 19:52:56 garbled Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.40 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
|
@ -78,7 +78,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.39 2007/10/17 19:52:56 garbled Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.40 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/buf.h>
|
||||
|
@ -110,10 +110,7 @@ const struct cdevsw mem_cdevsw = {
|
|||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
mmrw(dev, uio, flags)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
int flags;
|
||||
mmrw(dev_t dev, struct uio *uio, int flags)
|
||||
{
|
||||
register vaddr_t o, v;
|
||||
register int c;
|
||||
|
@ -201,10 +198,7 @@ kmemphys:
|
|||
}
|
||||
|
||||
paddr_t
|
||||
mmmmap(dev, off, prot)
|
||||
dev_t dev;
|
||||
off_t off;
|
||||
int prot;
|
||||
mmmmap(dev_t dev, off_t off, int prot)
|
||||
{
|
||||
/*
|
||||
* /dev/mem is the only one that makes sense through this
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isa_machdep.c,v 1.16 2009/03/14 14:45:52 dsl Exp $ */
|
||||
/* $NetBSD: isa_machdep.c,v 1.17 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.16 2009/03/14 14:45:52 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.17 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -82,10 +82,7 @@ isa_display_console(iot, memt)
|
|||
|
||||
#if (NPCPPI > 0)
|
||||
int
|
||||
isabeepmatch(parent, match, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *match;
|
||||
void *aux;
|
||||
isabeepmatch(struct device *parent, struct cfdata *match, void *aux)
|
||||
{
|
||||
return (!ppi_attached);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isapnp_machdep.c,v 1.6 2008/04/28 20:23:11 martin Exp $ */
|
||||
/* $NetBSD: isapnp_machdep.c,v 1.7 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -45,7 +45,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: isapnp_machdep.c,v 1.6 2008/04/28 20:23:11 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: isapnp_machdep.c,v 1.7 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -63,8 +63,7 @@ __KERNEL_RCSID(0, "$NetBSD: isapnp_machdep.c,v 1.6 2008/04/28 20:23:11 martin Ex
|
|||
* Map I/O regions used by PnP
|
||||
*/
|
||||
int
|
||||
isapnp_map(sc)
|
||||
struct isapnp_softc *sc;
|
||||
isapnp_map(struct isapnp_softc *sc)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -87,8 +86,7 @@ isapnp_map(sc)
|
|||
* Unmap I/O regions used by PnP
|
||||
*/
|
||||
void
|
||||
isapnp_unmap(sc)
|
||||
struct isapnp_softc *sc;
|
||||
isapnp_unmap(struct isapnp_softc *sc)
|
||||
{
|
||||
|
||||
alpha_bus_space_unmap_noacct(sc->sc_iot, sc->sc_addr_ioh, 1);
|
||||
|
@ -102,8 +100,7 @@ isapnp_unmap(sc)
|
|||
* NOTE: assumes the caller has filled in sc->sc_read_port!
|
||||
*/
|
||||
int
|
||||
isapnp_map_readport(sc)
|
||||
struct isapnp_softc *sc;
|
||||
isapnp_map_readport(struct isapnp_softc *sc)
|
||||
{
|
||||
#ifdef _KERNEL
|
||||
int error;
|
||||
|
@ -129,8 +126,7 @@ isapnp_map_readport(sc)
|
|||
* Pretend to unmap a previously mapped `read port'.
|
||||
*/
|
||||
void
|
||||
isapnp_unmap_readport(sc)
|
||||
struct isapnp_softc *sc;
|
||||
isapnp_unmap_readport(struct isapnp_softc *sc)
|
||||
{
|
||||
|
||||
/* Do nothing */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: a12c.c,v 1.19 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: a12c.c,v 1.20 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/* [Notice revision 2.2]
|
||||
* Copyright (c) 1997, 1998 Avalon Computer Systems, Inc.
|
||||
|
@ -38,7 +38,7 @@
|
|||
#include "opt_avalon_a12.h" /* Config options headers */
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: a12c.c,v 1.19 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: a12c.c,v 1.20 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -88,10 +88,7 @@ int a12cfound;
|
|||
struct a12c_config a12c_configuration;
|
||||
|
||||
int
|
||||
a12cmatch(parent, match, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *match;
|
||||
void *aux;
|
||||
a12cmatch(struct device *parent, struct cfdata *match, void *aux)
|
||||
{
|
||||
struct mainbus_attach_args *ma = aux;
|
||||
|
||||
|
@ -101,9 +98,7 @@ a12cmatch(parent, match, aux)
|
|||
}
|
||||
|
||||
void
|
||||
a12c_init(ccp, mallocsafe)
|
||||
struct a12c_config *ccp;
|
||||
int mallocsafe;
|
||||
a12c_init(struct a12c_config *ccp, int mallocsafe)
|
||||
{
|
||||
if (!ccp->ac_initted) {
|
||||
/* someday these may allocate memory, do once only */
|
||||
|
@ -141,7 +136,7 @@ a12cattach(parent, self, aux)
|
|||
a12c_init(ccp, 1);
|
||||
|
||||
/* XXX print chipset information */
|
||||
printf(": driver %s over logic %x\n", "$Revision: 1.19 $",
|
||||
printf(": driver %s over logic %x\n", "$Revision: 1.20 $",
|
||||
A12_ALL_EXTRACT(REGVAL(A12_VERS)));
|
||||
|
||||
pci_a12_pickintr(ccp);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: a12c_dma.c,v 1.5 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: a12c_dma.c,v 1.6 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -44,7 +44,7 @@
|
|||
#include "opt_avalon_a12.h" /* Config options headers */
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: a12c_dma.c,v 1.5 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: a12c_dma.c,v 1.6 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -80,8 +80,7 @@ int a12c_bus_dmamap_load_raw_direct(bus_dma_tag_t, bus_dmamap_t,
|
|||
bus_dma_segment_t *, int, bus_size_t, int);
|
||||
|
||||
void
|
||||
a12c_dma_init(ccp)
|
||||
struct a12c_config *ccp;
|
||||
a12c_dma_init(struct a12c_config *ccp)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -90,9 +89,7 @@ a12c_dma_init(ccp)
|
|||
* INTERNAL USE ONLY!
|
||||
*/
|
||||
bus_dma_tag_t
|
||||
a12c_dma_get_tag(t, bustype)
|
||||
bus_dma_tag_t t;
|
||||
alpha_bus_t bustype;
|
||||
a12c_dma_get_tag(bus_dma_tag_t t, alpha_bus_t bustype)
|
||||
{
|
||||
DIE();
|
||||
}
|
||||
|
@ -100,13 +97,7 @@ a12c_dma_get_tag(t, bustype)
|
|||
* Load a A12C direct-mapped DMA map with a linear buffer.
|
||||
*/
|
||||
int
|
||||
a12c_bus_dmamap_load_direct(t, map, buf, buflen, p, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
void *buf;
|
||||
bus_size_t buflen;
|
||||
struct proc *p;
|
||||
int flags;
|
||||
a12c_bus_dmamap_load_direct(bus_dma_tag_t t, bus_dmamap_t map, void *buf, bus_size_t buflen, struct proc *p, int flags)
|
||||
{
|
||||
DIE();
|
||||
#if 0
|
||||
|
@ -119,11 +110,7 @@ a12c_bus_dmamap_load_direct(t, map, buf, buflen, p, flags)
|
|||
* Load a A12C direct-mapped DMA map with an mbuf chain.
|
||||
*/
|
||||
int
|
||||
a12c_bus_dmamap_load_mbuf_direct(t, map, m, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct mbuf *m;
|
||||
int flags;
|
||||
a12c_bus_dmamap_load_mbuf_direct(bus_dma_tag_t t, bus_dmamap_t map, struct mbuf *m, int flags)
|
||||
{
|
||||
DIE();
|
||||
#if 0
|
||||
|
@ -136,11 +123,7 @@ a12c_bus_dmamap_load_mbuf_direct(t, map, m, flags)
|
|||
* Load a A12C direct-mapped DMA map with a uio.
|
||||
*/
|
||||
int
|
||||
a12c_bus_dmamap_load_uio_direct(t, map, uio, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct uio *uio;
|
||||
int flags;
|
||||
a12c_bus_dmamap_load_uio_direct(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio, int flags)
|
||||
{
|
||||
DIE();
|
||||
#if 0
|
||||
|
@ -153,13 +136,7 @@ a12c_bus_dmamap_load_uio_direct(t, map, uio, flags)
|
|||
* Load a A12C direct-mapped DMA map with raw memory.
|
||||
*/
|
||||
int
|
||||
a12c_bus_dmamap_load_raw_direct(t, map, segs, nsegs, size, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
bus_size_t size;
|
||||
int flags;
|
||||
a12c_bus_dmamap_load_raw_direct(bus_dma_tag_t t, bus_dmamap_t map, bus_dma_segment_t *segs, int nsegs, bus_size_t size, int flags)
|
||||
{
|
||||
DIE();
|
||||
#if 0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: a12c_pci.c,v 1.4 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: a12c_pci.c,v 1.5 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/* [Notice revision 2.0]
|
||||
* Copyright (c) 1997 Avalon Computer Systems, Inc.
|
||||
|
@ -38,7 +38,7 @@
|
|||
#include "opt_avalon_a12.h" /* Config options headers */
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: a12c_pci.c,v 1.4 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: a12c_pci.c,v 1.5 2009/03/14 15:35:59 dsl Exp $");
|
||||
__KERNEL_COPYRIGHT(0,
|
||||
"Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.");
|
||||
|
||||
|
@ -68,9 +68,7 @@ pcireg_t a12c_conf_read(void *, pcitag_t, int);
|
|||
void a12c_conf_write(void *, pcitag_t, int, pcireg_t);
|
||||
|
||||
void
|
||||
a12c_pci_init(pc, v)
|
||||
pci_chipset_tag_t pc;
|
||||
void *v;
|
||||
a12c_pci_init(pci_chipset_tag_t pc, void *v)
|
||||
{
|
||||
|
||||
pc->pc_conf_v = v;
|
||||
|
@ -90,9 +88,7 @@ a12c_attach_hook(parent, self, pba)
|
|||
}
|
||||
|
||||
int
|
||||
a12c_bus_maxdevs(cpv, busno)
|
||||
void *cpv;
|
||||
int busno;
|
||||
a12c_bus_maxdevs(void *cpv, int busno)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@ -161,10 +157,7 @@ a12_reset_pci_config_cycle(void)
|
|||
}
|
||||
|
||||
pcireg_t
|
||||
a12c_conf_read(cpv, tag, offset)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
a12c_conf_read(void *cpv, pcitag_t tag, int offset)
|
||||
{
|
||||
pcireg_t *datap, data;
|
||||
int s, ba;
|
||||
|
@ -201,11 +194,7 @@ a12c_conf_read(cpv, tag, offset)
|
|||
|
||||
|
||||
void
|
||||
a12c_conf_write(cpv, tag, offset, data)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
pcireg_t data;
|
||||
a12c_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
|
||||
{
|
||||
pcireg_t *datap;
|
||||
int s;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: apecs.c,v 1.47 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: apecs.c,v 1.48 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -63,7 +63,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: apecs.c,v 1.47 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: apecs.c,v 1.48 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -113,10 +113,7 @@ int apecsfound;
|
|||
struct apecs_config apecs_configuration;
|
||||
|
||||
int
|
||||
apecsmatch(parent, match, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *match;
|
||||
void *aux;
|
||||
apecsmatch(struct device *parent, struct cfdata *match, void *aux)
|
||||
{
|
||||
struct mainbus_attach_args *ma = aux;
|
||||
|
||||
|
@ -134,9 +131,7 @@ apecsmatch(parent, match, aux)
|
|||
* Set up the chipset's function pointers.
|
||||
*/
|
||||
void
|
||||
apecs_init(acp, mallocsafe)
|
||||
struct apecs_config *acp;
|
||||
int mallocsafe;
|
||||
apecs_init(struct apecs_config *acp, int mallocsafe)
|
||||
{
|
||||
acp->ac_comanche_pass2 =
|
||||
(REGVAL(COMANCHE_ED) & COMANCHE_ED_PASS2) != 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: apecs_dma.c,v 1.17 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: apecs_dma.c,v 1.18 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: apecs_dma.c,v 1.17 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: apecs_dma.c,v 1.18 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -92,8 +92,7 @@ do { \
|
|||
} while (0)
|
||||
|
||||
void
|
||||
apecs_dma_init(acp)
|
||||
struct apecs_config *acp;
|
||||
apecs_dma_init(struct apecs_config *acp)
|
||||
{
|
||||
bus_addr_t tbase;
|
||||
bus_dma_tag_t t;
|
||||
|
@ -198,9 +197,7 @@ apecs_dma_init(acp)
|
|||
* INTERNAL USE ONLY!
|
||||
*/
|
||||
bus_dma_tag_t
|
||||
apecs_dma_get_tag(t, bustype)
|
||||
bus_dma_tag_t t;
|
||||
alpha_bus_t bustype;
|
||||
apecs_dma_get_tag(bus_dma_tag_t t, alpha_bus_t bustype)
|
||||
{
|
||||
struct apecs_config *acp = t->_cookie;
|
||||
|
||||
|
@ -231,13 +228,7 @@ apecs_dma_get_tag(t, bustype)
|
|||
* Load an APECS SGMAP-mapped DMA map with a linear buffer.
|
||||
*/
|
||||
int
|
||||
apecs_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
void *buf;
|
||||
bus_size_t buflen;
|
||||
struct proc *p;
|
||||
int flags;
|
||||
apecs_bus_dmamap_load_sgmap(bus_dma_tag_t t, bus_dmamap_t map, void *buf, bus_size_t buflen, struct proc *p, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -253,11 +244,7 @@ apecs_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
|||
* Load an APECS SGMAP-mapped DMA map with an mbuf chain.
|
||||
*/
|
||||
int
|
||||
apecs_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct mbuf *m;
|
||||
int flags;
|
||||
apecs_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct mbuf *m, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -272,11 +259,7 @@ apecs_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
|||
* Load an APECS SGMAP-mapped DMA map with a uio.
|
||||
*/
|
||||
int
|
||||
apecs_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct uio *uio;
|
||||
int flags;
|
||||
apecs_bus_dmamap_load_uio_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -291,13 +274,7 @@ apecs_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
|||
* Load an APECS SGMAP-mapped DMA map with raw memory.
|
||||
*/
|
||||
int
|
||||
apecs_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
bus_size_t size;
|
||||
int flags;
|
||||
apecs_bus_dmamap_load_raw_sgmap(bus_dma_tag_t t, bus_dmamap_t map, bus_dma_segment_t *segs, int nsegs, bus_size_t size, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -313,9 +290,7 @@ apecs_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
|||
* Unload an APECS DMA map.
|
||||
*/
|
||||
void
|
||||
apecs_bus_dmamap_unload_sgmap(t, map)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
apecs_bus_dmamap_unload_sgmap(bus_dma_tag_t t, bus_dmamap_t map)
|
||||
{
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: apecs_pci.c,v 1.20 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: apecs_pci.c,v 1.21 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: apecs_pci.c,v 1.20 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: apecs_pci.c,v 1.21 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -53,9 +53,7 @@ pcireg_t apecs_conf_read(void *, pcitag_t, int);
|
|||
void apecs_conf_write(void *, pcitag_t, int, pcireg_t);
|
||||
|
||||
void
|
||||
apecs_pci_init(pc, v)
|
||||
pci_chipset_tag_t pc;
|
||||
void *v;
|
||||
apecs_pci_init(pci_chipset_tag_t pc, void *v)
|
||||
{
|
||||
|
||||
pc->pc_conf_v = v;
|
||||
|
@ -75,9 +73,7 @@ apecs_attach_hook(parent, self, pba)
|
|||
}
|
||||
|
||||
int
|
||||
apecs_bus_maxdevs(cpv, busno)
|
||||
void *cpv;
|
||||
int busno;
|
||||
apecs_bus_maxdevs(void *cpv, int busno)
|
||||
{
|
||||
|
||||
return 32;
|
||||
|
@ -108,10 +104,7 @@ apecs_decompose_tag(cpv, tag, bp, dp, fp)
|
|||
}
|
||||
|
||||
pcireg_t
|
||||
apecs_conf_read(cpv, tag, offset)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
apecs_conf_read(void *cpv, pcitag_t tag, int offset)
|
||||
{
|
||||
struct apecs_config *acp = cpv;
|
||||
pcireg_t *datap, data;
|
||||
|
@ -156,11 +149,7 @@ apecs_conf_read(cpv, tag, offset)
|
|||
}
|
||||
|
||||
void
|
||||
apecs_conf_write(cpv, tag, offset, data)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
pcireg_t data;
|
||||
apecs_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
|
||||
{
|
||||
struct apecs_config *acp = cpv;
|
||||
pcireg_t *datap;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cia.c,v 1.67 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: cia.c,v 1.68 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -65,7 +65,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: cia.c,v 1.67 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cia.c,v 1.68 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -151,10 +151,7 @@ int cia_bus_use_bwx = CIA_BUS_USE_BWX;
|
|||
int cia_pyxis_force_bwx = CIA_PYXIS_FORCE_BWX;
|
||||
|
||||
int
|
||||
ciamatch(parent, match, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *match;
|
||||
void *aux;
|
||||
ciamatch(struct device *parent, struct cfdata *match, void *aux)
|
||||
{
|
||||
struct mainbus_attach_args *ma = aux;
|
||||
|
||||
|
@ -172,9 +169,7 @@ ciamatch(parent, match, aux)
|
|||
* Set up the chipset's function pointers.
|
||||
*/
|
||||
void
|
||||
cia_init(ccp, mallocsafe)
|
||||
struct cia_config *ccp;
|
||||
int mallocsafe;
|
||||
cia_init(struct cia_config *ccp, int mallocsafe)
|
||||
{
|
||||
int pci_use_bwx = cia_pci_use_bwx;
|
||||
int bus_use_bwx = cia_bus_use_bwx;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cia_dma.c,v 1.23 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: cia_dma.c,v 1.24 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: cia_dma.c,v 1.23 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cia_dma.c,v 1.24 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -96,8 +96,7 @@ struct alpha_sgmap cia_pyxis_bug_sgmap;
|
|||
#define CIA_PYXIS_BUG_SIZE (2*1024*1024)
|
||||
|
||||
void
|
||||
cia_dma_init(ccp)
|
||||
struct cia_config *ccp;
|
||||
cia_dma_init(struct cia_config *ccp)
|
||||
{
|
||||
bus_addr_t tbase;
|
||||
bus_dma_tag_t t;
|
||||
|
@ -251,9 +250,7 @@ cia_dma_init(ccp)
|
|||
* INTERNAL USE ONLY!
|
||||
*/
|
||||
bus_dma_tag_t
|
||||
cia_dma_get_tag(t, bustype)
|
||||
bus_dma_tag_t t;
|
||||
alpha_bus_t bustype;
|
||||
cia_dma_get_tag(bus_dma_tag_t t, alpha_bus_t bustype)
|
||||
{
|
||||
struct cia_config *ccp = t->_cookie;
|
||||
|
||||
|
@ -334,13 +331,7 @@ cia_bus_dmamap_create_direct(t, size, nsegments, maxsegsz, boundary,
|
|||
* Load a CIA SGMAP-mapped DMA map with a linear buffer.
|
||||
*/
|
||||
int
|
||||
cia_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
void *buf;
|
||||
bus_size_t buflen;
|
||||
struct proc *p;
|
||||
int flags;
|
||||
cia_bus_dmamap_load_sgmap(bus_dma_tag_t t, bus_dmamap_t map, void *buf, bus_size_t buflen, struct proc *p, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -356,11 +347,7 @@ cia_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
|||
* Load a CIA SGMAP-mapped DMA map with an mbuf chain.
|
||||
*/
|
||||
int
|
||||
cia_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct mbuf *m;
|
||||
int flags;
|
||||
cia_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct mbuf *m, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -375,11 +362,7 @@ cia_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
|||
* Load a CIA SGMAP-mapped DMA map with a uio.
|
||||
*/
|
||||
int
|
||||
cia_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct uio *uio;
|
||||
int flags;
|
||||
cia_bus_dmamap_load_uio_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -394,13 +377,7 @@ cia_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
|||
* Load a CIA SGMAP-mapped DMA map with raw memory.
|
||||
*/
|
||||
int
|
||||
cia_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
bus_size_t size;
|
||||
int flags;
|
||||
cia_bus_dmamap_load_raw_sgmap(bus_dma_tag_t t, bus_dmamap_t map, bus_dma_segment_t *segs, int nsegs, bus_size_t size, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -416,9 +393,7 @@ cia_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
|||
* Unload a CIA DMA map.
|
||||
*/
|
||||
void
|
||||
cia_bus_dmamap_unload_sgmap(t, map)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
cia_bus_dmamap_unload_sgmap(bus_dma_tag_t t, bus_dmamap_t map)
|
||||
{
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cia_pci.c,v 1.27 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: cia_pci.c,v 1.28 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: cia_pci.c,v 1.27 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cia_pci.c,v 1.28 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -53,9 +53,7 @@ pcireg_t cia_conf_read(void *, pcitag_t, int);
|
|||
void cia_conf_write(void *, pcitag_t, int, pcireg_t);
|
||||
|
||||
void
|
||||
cia_pci_init(pc, v)
|
||||
pci_chipset_tag_t pc;
|
||||
void *v;
|
||||
cia_pci_init(pci_chipset_tag_t pc, void *v)
|
||||
{
|
||||
|
||||
pc->pc_conf_v = v;
|
||||
|
@ -75,9 +73,7 @@ cia_attach_hook(parent, self, pba)
|
|||
}
|
||||
|
||||
int
|
||||
cia_bus_maxdevs(cpv, busno)
|
||||
void *cpv;
|
||||
int busno;
|
||||
cia_bus_maxdevs(void *cpv, int busno)
|
||||
{
|
||||
|
||||
return 32;
|
||||
|
@ -108,10 +104,7 @@ cia_decompose_tag(cpv, tag, bp, dp, fp)
|
|||
}
|
||||
|
||||
pcireg_t
|
||||
cia_conf_read(cpv, tag, offset)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
cia_conf_read(void *cpv, pcitag_t tag, int offset)
|
||||
{
|
||||
struct cia_config *ccp = cpv;
|
||||
pcireg_t *datap, data;
|
||||
|
@ -206,11 +199,7 @@ cia_conf_read(cpv, tag, offset)
|
|||
}
|
||||
|
||||
void
|
||||
cia_conf_write(cpv, tag, offset, data)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
pcireg_t data;
|
||||
cia_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
|
||||
{
|
||||
struct cia_config *ccp = cpv;
|
||||
pcireg_t *datap;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dwlpx.c,v 1.33 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: dwlpx.c,v 1.34 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 by Matthew Jacob
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dwlpx.c,v 1.33 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dwlpx.c,v 1.34 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -74,10 +74,7 @@ extern struct cfdriver dwlpx_cd;
|
|||
void dwlpx_errintr(void *, u_long vec);
|
||||
|
||||
static int
|
||||
dwlpxmatch(parent, cf, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
void *aux;
|
||||
dwlpxmatch(struct device *parent, struct cfdata *cf, void *aux)
|
||||
{
|
||||
struct kft_dev_attach_args *ka = aux;
|
||||
unsigned long ls;
|
||||
|
@ -107,10 +104,7 @@ dwlpxmatch(parent, cf, aux)
|
|||
}
|
||||
|
||||
static void
|
||||
dwlpxattach(parent, self, aux)
|
||||
struct device *parent;
|
||||
struct device *self;
|
||||
void *aux;
|
||||
dwlpxattach(struct device *parent, struct device *self, void *aux)
|
||||
{
|
||||
static int once = 0;
|
||||
struct dwlpx_softc *sc = (struct dwlpx_softc *)self;
|
||||
|
@ -189,8 +183,7 @@ dwlpxattach(parent, self, aux)
|
|||
}
|
||||
|
||||
void
|
||||
dwlpx_init(sc)
|
||||
struct dwlpx_softc *sc;
|
||||
dwlpx_init(struct dwlpx_softc *sc)
|
||||
{
|
||||
u_int32_t ctl;
|
||||
struct dwlpx_config *ccp = &sc->dwlpx_cc;
|
||||
|
@ -310,9 +303,7 @@ dwlpx_init(sc)
|
|||
}
|
||||
|
||||
void
|
||||
dwlpx_errintr(arg, vec)
|
||||
void *arg;
|
||||
unsigned long vec;
|
||||
dwlpx_errintr(void *arg, unsigned long vec)
|
||||
{
|
||||
struct dwlpx_softc *sc = arg;
|
||||
struct dwlpx_config *ccp = &sc->dwlpx_cc;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dwlpx_dma.c,v 1.18 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: dwlpx_dma.c,v 1.19 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dwlpx_dma.c,v 1.18 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dwlpx_dma.c,v 1.19 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -95,8 +95,7 @@ int dwlpx_always_use_sgmap = 0;
|
|||
#endif
|
||||
|
||||
void
|
||||
dwlpx_dma_init(ccp)
|
||||
struct dwlpx_config *ccp;
|
||||
dwlpx_dma_init(struct dwlpx_config *ccp)
|
||||
{
|
||||
char *exname;
|
||||
bus_dma_tag_t t;
|
||||
|
@ -256,9 +255,7 @@ dwlpx_dma_init(ccp)
|
|||
* INTERNAL USE ONLY!
|
||||
*/
|
||||
bus_dma_tag_t
|
||||
dwlpx_dma_get_tag(t, bustype)
|
||||
bus_dma_tag_t t;
|
||||
alpha_bus_t bustype;
|
||||
dwlpx_dma_get_tag(bus_dma_tag_t t, alpha_bus_t bustype)
|
||||
{
|
||||
struct dwlpx_config *ccp = t->_cookie;
|
||||
|
||||
|
@ -296,13 +293,7 @@ dwlpx_dma_get_tag(t, bustype)
|
|||
* Load a DWLPx SGMAP-mapped DMA map with a linear buffer.
|
||||
*/
|
||||
int
|
||||
dwlpx_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
void *buf;
|
||||
bus_size_t buflen;
|
||||
struct proc *p;
|
||||
int flags;
|
||||
dwlpx_bus_dmamap_load_sgmap(bus_dma_tag_t t, bus_dmamap_t map, void *buf, bus_size_t buflen, struct proc *p, int flags)
|
||||
{
|
||||
|
||||
return (pci_sgmap_pte32_load(t, map, buf, buflen, p, flags,
|
||||
|
@ -313,11 +304,7 @@ dwlpx_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
|||
* Load a DWLPx SGMAP-mapped DMA map with an mbuf chain.
|
||||
*/
|
||||
int
|
||||
dwlpx_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct mbuf *m;
|
||||
int flags;
|
||||
dwlpx_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct mbuf *m, int flags)
|
||||
{
|
||||
|
||||
return (pci_sgmap_pte32_load_mbuf(t, map, m, flags, t->_sgmap));
|
||||
|
@ -327,11 +314,7 @@ dwlpx_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
|||
* Load a DWLPx SGMAP-mapped DMA map with a uio.
|
||||
*/
|
||||
int
|
||||
dwlpx_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct uio *uio;
|
||||
int flags;
|
||||
dwlpx_bus_dmamap_load_uio_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio, int flags)
|
||||
{
|
||||
|
||||
return (pci_sgmap_pte32_load_uio(t, map, uio, flags, t->_sgmap));
|
||||
|
@ -341,13 +324,7 @@ dwlpx_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
|||
* Load a DWLPx SGMAP-mapped DMA map with raw memory.
|
||||
*/
|
||||
int
|
||||
dwlpx_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
bus_size_t size;
|
||||
int flags;
|
||||
dwlpx_bus_dmamap_load_raw_sgmap(bus_dma_tag_t t, bus_dmamap_t map, bus_dma_segment_t *segs, int nsegs, bus_size_t size, int flags)
|
||||
{
|
||||
|
||||
return (pci_sgmap_pte32_load_raw(t, map, segs, nsegs, size, flags,
|
||||
|
@ -358,9 +335,7 @@ dwlpx_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
|||
* Unload a DWLPx DMA map.
|
||||
*/
|
||||
void
|
||||
dwlpx_bus_dmamap_unload_sgmap(t, map)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
dwlpx_bus_dmamap_unload_sgmap(bus_dma_tag_t t, bus_dmamap_t map)
|
||||
{
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dwlpx_pci.c,v 1.13 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: dwlpx_pci.c,v 1.14 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 by Matthew Jacob
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dwlpx_pci.c,v 1.13 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dwlpx_pci.c,v 1.14 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -59,9 +59,7 @@ pcireg_t dwlpx_conf_read(void *, pcitag_t, int);
|
|||
void dwlpx_conf_write(void *, pcitag_t, int, pcireg_t);
|
||||
|
||||
void
|
||||
dwlpx_pci_init(pc, v)
|
||||
pci_chipset_tag_t pc;
|
||||
void *v;
|
||||
dwlpx_pci_init(pci_chipset_tag_t pc, void *v)
|
||||
{
|
||||
pc->pc_conf_v = v;
|
||||
pc->pc_attach_hook = dwlpx_attach_hook;
|
||||
|
@ -84,9 +82,7 @@ dwlpx_attach_hook(parent, self, pba)
|
|||
}
|
||||
|
||||
int
|
||||
dwlpx_bus_maxdevs(cpv, busno)
|
||||
void *cpv;
|
||||
int busno;
|
||||
dwlpx_bus_maxdevs(void *cpv, int busno)
|
||||
{
|
||||
return DWLPX_MAXDEV;
|
||||
}
|
||||
|
@ -129,10 +125,7 @@ dwlpx_decompose_tag(cpv, tag, bp, dp, fp)
|
|||
}
|
||||
|
||||
pcireg_t
|
||||
dwlpx_conf_read(cpv, tag, offset)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
dwlpx_conf_read(void *cpv, pcitag_t tag, int offset)
|
||||
{
|
||||
struct dwlpx_config *ccp = cpv;
|
||||
struct dwlpx_softc *sc;
|
||||
|
@ -198,11 +191,7 @@ dwlpx_conf_read(cpv, tag, offset)
|
|||
}
|
||||
|
||||
void
|
||||
dwlpx_conf_write(cpv, tag, offset, data)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
pcireg_t data;
|
||||
dwlpx_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
|
||||
{
|
||||
struct dwlpx_config *ccp = cpv;
|
||||
struct dwlpx_softc *sc;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lca.c,v 1.45 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: lca.c,v 1.46 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -62,7 +62,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: lca.c,v 1.45 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lca.c,v 1.46 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -109,10 +109,7 @@ int lcafound;
|
|||
struct lca_config lca_configuration;
|
||||
|
||||
int
|
||||
lcamatch(parent, match, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *match;
|
||||
void *aux;
|
||||
lcamatch(struct device *parent, struct cfdata *match, void *aux)
|
||||
{
|
||||
struct mainbus_attach_args *ma = aux;
|
||||
|
||||
|
@ -130,9 +127,7 @@ lcamatch(parent, match, aux)
|
|||
* Set up the chipset's function pointers.
|
||||
*/
|
||||
void
|
||||
lca_init(lcp, mallocsafe)
|
||||
struct lca_config *lcp;
|
||||
int mallocsafe;
|
||||
lca_init(struct lca_config *lcp, int mallocsafe)
|
||||
{
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lca_dma.c,v 1.19 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: lca_dma.c,v 1.20 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: lca_dma.c,v 1.19 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lca_dma.c,v 1.20 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -95,8 +95,7 @@ do { \
|
|||
} while (0)
|
||||
|
||||
void
|
||||
lca_dma_init(lcp)
|
||||
struct lca_config *lcp;
|
||||
lca_dma_init(struct lca_config *lcp)
|
||||
{
|
||||
bus_dma_tag_t t;
|
||||
|
||||
|
@ -203,9 +202,7 @@ lca_dma_init(lcp)
|
|||
* INTERNAL USE ONLY!
|
||||
*/
|
||||
bus_dma_tag_t
|
||||
lca_dma_get_tag(t, bustype)
|
||||
bus_dma_tag_t t;
|
||||
alpha_bus_t bustype;
|
||||
lca_dma_get_tag(bus_dma_tag_t t, alpha_bus_t bustype)
|
||||
{
|
||||
struct lca_config *lcp = t->_cookie;
|
||||
|
||||
|
@ -236,13 +233,7 @@ lca_dma_get_tag(t, bustype)
|
|||
* Load an LCA SGMAP-mapped DMA map with a linear buffer.
|
||||
*/
|
||||
int
|
||||
lca_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
void *buf;
|
||||
bus_size_t buflen;
|
||||
struct proc *p;
|
||||
int flags;
|
||||
lca_bus_dmamap_load_sgmap(bus_dma_tag_t t, bus_dmamap_t map, void *buf, bus_size_t buflen, struct proc *p, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -258,11 +249,7 @@ lca_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
|||
* Load an LCA SGMAP-mapped DMA map with an mbuf chain.
|
||||
*/
|
||||
int
|
||||
lca_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct mbuf *m;
|
||||
int flags;
|
||||
lca_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct mbuf *m, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -277,11 +264,7 @@ lca_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
|||
* Load an LCA SGMAP-mapped DMA map with a uio.
|
||||
*/
|
||||
int
|
||||
lca_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct uio *uio;
|
||||
int flags;
|
||||
lca_bus_dmamap_load_uio_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -296,13 +279,7 @@ lca_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
|||
* Load an LCA SGMAP-mapped DMA map with raw memory.
|
||||
*/
|
||||
int
|
||||
lca_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
bus_size_t size;
|
||||
int flags;
|
||||
lca_bus_dmamap_load_raw_sgmap(bus_dma_tag_t t, bus_dmamap_t map, bus_dma_segment_t *segs, int nsegs, bus_size_t size, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -318,9 +295,7 @@ lca_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
|||
* Unload an LCA DMA map.
|
||||
*/
|
||||
void
|
||||
lca_bus_dmamap_unload_sgmap(t, map)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
lca_bus_dmamap_unload_sgmap(bus_dma_tag_t t, bus_dmamap_t map)
|
||||
{
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lca_pci.c,v 1.16 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: lca_pci.c,v 1.17 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: lca_pci.c,v 1.16 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lca_pci.c,v 1.17 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -53,9 +53,7 @@ pcireg_t lca_conf_read(void *, pcitag_t, int);
|
|||
void lca_conf_write(void *, pcitag_t, int, pcireg_t);
|
||||
|
||||
void
|
||||
lca_pci_init(pc, v)
|
||||
pci_chipset_tag_t pc;
|
||||
void *v;
|
||||
lca_pci_init(pci_chipset_tag_t pc, void *v)
|
||||
{
|
||||
|
||||
pc->pc_conf_v = v;
|
||||
|
@ -75,9 +73,7 @@ lca_attach_hook(parent, self, pba)
|
|||
}
|
||||
|
||||
int
|
||||
lca_bus_maxdevs(cpv, busno)
|
||||
void *cpv;
|
||||
int busno;
|
||||
lca_bus_maxdevs(void *cpv, int busno)
|
||||
{
|
||||
|
||||
if (busno == 0)
|
||||
|
@ -111,10 +107,7 @@ lca_decompose_tag(cpv, tag, bp, dp, fp)
|
|||
}
|
||||
|
||||
pcireg_t
|
||||
lca_conf_read(cpv, tag, offset)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
lca_conf_read(void *cpv, pcitag_t tag, int offset)
|
||||
{
|
||||
struct lca_config *lcp = cpv;
|
||||
pcireg_t *datap, data;
|
||||
|
@ -164,11 +157,7 @@ lca_conf_read(cpv, tag, offset)
|
|||
}
|
||||
|
||||
void
|
||||
lca_conf_write(cpv, tag, offset, data)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
pcireg_t data;
|
||||
lca_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
|
||||
{
|
||||
struct lca_config *lcp = cpv;
|
||||
pcireg_t *datap;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mcpcia.c,v 1.23 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: mcpcia.c,v 1.24 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -67,7 +67,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: mcpcia.c,v 1.23 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mcpcia.c,v 1.24 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -114,10 +114,7 @@ int mcpcia_bus_get_window(int, int,
|
|||
struct alpha_bus_space_translation *abst);
|
||||
|
||||
static int
|
||||
mcpciamatch(parent, cf, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
void *aux;
|
||||
mcpciamatch(struct device *parent, struct cfdata *cf, void *aux)
|
||||
{
|
||||
struct mcbus_dev_attach_args *ma = aux;
|
||||
if (ma->ma_type == MCBUS_TYPE_PCI)
|
||||
|
@ -126,10 +123,7 @@ mcpciamatch(parent, cf, aux)
|
|||
}
|
||||
|
||||
static void
|
||||
mcpciaattach(parent, self, aux)
|
||||
struct device *parent;
|
||||
struct device *self;
|
||||
void *aux;
|
||||
mcpciaattach(struct device *parent, struct device *self, void *aux)
|
||||
{
|
||||
static int first = 1;
|
||||
struct mcbus_dev_attach_args *ma = aux;
|
||||
|
@ -247,9 +241,7 @@ mcpcia_init()
|
|||
}
|
||||
|
||||
void
|
||||
mcpcia_init0(ccp, mallocsafe)
|
||||
struct mcpcia_config *ccp;
|
||||
int mallocsafe;
|
||||
mcpcia_init0(struct mcpcia_config *ccp, int mallocsafe)
|
||||
{
|
||||
u_int32_t ctl;
|
||||
|
||||
|
@ -296,8 +288,7 @@ mcpcia_init0(ccp, mallocsafe)
|
|||
|
||||
#ifdef TEST_PROBE_DEATH
|
||||
static void
|
||||
die_heathen_dog(arg)
|
||||
void *arg;
|
||||
die_heathen_dog(void *arg)
|
||||
{
|
||||
struct mcpcia_config *ccp = arg;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mcpcia_dma.c,v 1.17 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: mcpcia_dma.c,v 1.18 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: mcpcia_dma.c,v 1.17 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mcpcia_dma.c,v 1.18 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -96,8 +96,7 @@ do { \
|
|||
} while (0)
|
||||
|
||||
void
|
||||
mcpcia_dma_init(ccp)
|
||||
struct mcpcia_config *ccp;
|
||||
mcpcia_dma_init(struct mcpcia_config *ccp)
|
||||
{
|
||||
bus_dma_tag_t t;
|
||||
|
||||
|
@ -257,9 +256,7 @@ mcpcia_dma_init(ccp)
|
|||
* INTERNAL USE ONLY!
|
||||
*/
|
||||
bus_dma_tag_t
|
||||
mcpcia_dma_get_tag(t, bustype)
|
||||
bus_dma_tag_t t;
|
||||
alpha_bus_t bustype;
|
||||
mcpcia_dma_get_tag(bus_dma_tag_t t, alpha_bus_t bustype)
|
||||
{
|
||||
struct mcpcia_config *ccp = t->_cookie;
|
||||
|
||||
|
@ -290,13 +287,7 @@ mcpcia_dma_get_tag(t, bustype)
|
|||
* Load a MCPCIA SGMAP-mapped DMA map with a linear buffer.
|
||||
*/
|
||||
int
|
||||
mcpcia_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
void *buf;
|
||||
bus_size_t buflen;
|
||||
struct proc *p;
|
||||
int flags;
|
||||
mcpcia_bus_dmamap_load_sgmap(bus_dma_tag_t t, bus_dmamap_t map, void *buf, bus_size_t buflen, struct proc *p, int flags)
|
||||
{
|
||||
int error;
|
||||
struct mcpcia_config *ccp = t->_cookie;
|
||||
|
@ -312,11 +303,7 @@ mcpcia_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
|||
* Load a MCPCIA SGMAP-mapped DMA map with an mbuf chain.
|
||||
*/
|
||||
int
|
||||
mcpcia_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct mbuf *m;
|
||||
int flags;
|
||||
mcpcia_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct mbuf *m, int flags)
|
||||
{
|
||||
int error;
|
||||
struct mcpcia_config *ccp = t->_cookie;
|
||||
|
@ -331,11 +318,7 @@ mcpcia_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
|||
* Load a MCPCIA SGMAP-mapped DMA map with a uio.
|
||||
*/
|
||||
int
|
||||
mcpcia_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct uio *uio;
|
||||
int flags;
|
||||
mcpcia_bus_dmamap_load_uio_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio, int flags)
|
||||
{
|
||||
int error;
|
||||
struct mcpcia_config *ccp = t->_cookie;
|
||||
|
@ -350,13 +333,7 @@ mcpcia_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
|||
* Load a MCPCIA SGMAP-mapped DMA map with raw memory.
|
||||
*/
|
||||
int
|
||||
mcpcia_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
bus_size_t size;
|
||||
int flags;
|
||||
mcpcia_bus_dmamap_load_raw_sgmap(bus_dma_tag_t t, bus_dmamap_t map, bus_dma_segment_t *segs, int nsegs, bus_size_t size, int flags)
|
||||
{
|
||||
int error;
|
||||
struct mcpcia_config *ccp = t->_cookie;
|
||||
|
@ -372,9 +349,7 @@ mcpcia_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
|||
* Unload a MCPCIA DMA map.
|
||||
*/
|
||||
void
|
||||
mcpcia_bus_dmamap_unload_sgmap(t, map)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
mcpcia_bus_dmamap_unload_sgmap(bus_dma_tag_t t, bus_dmamap_t map)
|
||||
{
|
||||
struct mcpcia_config *ccp = t->_cookie;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mcpcia_pci.c,v 1.6 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: mcpcia_pci.c,v 1.7 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 by Matthew Jacob
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: mcpcia_pci.c,v 1.6 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mcpcia_pci.c,v 1.7 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -62,9 +62,7 @@ static void
|
|||
mcpcia_conf_write(void *, pcitag_t, int, pcireg_t);
|
||||
|
||||
void
|
||||
mcpcia_pci_init(pc, v)
|
||||
pci_chipset_tag_t pc;
|
||||
void *v;
|
||||
mcpcia_pci_init(pci_chipset_tag_t pc, void *v)
|
||||
{
|
||||
pc->pc_conf_v = v;
|
||||
pc->pc_attach_hook = mcpcia_attach_hook;
|
||||
|
@ -83,9 +81,7 @@ mcpcia_attach_hook(parent, self, pba)
|
|||
}
|
||||
|
||||
static int
|
||||
mcpcia_bus_maxdevs(cpv, busno)
|
||||
void *cpv;
|
||||
int busno;
|
||||
mcpcia_bus_maxdevs(void *cpv, int busno)
|
||||
{
|
||||
return (MCPCIA_MAXDEV);
|
||||
}
|
||||
|
@ -115,10 +111,7 @@ mcpcia_decompose_tag(cpv, tag, bp, dp, fp)
|
|||
}
|
||||
|
||||
static pcireg_t
|
||||
mcpcia_conf_read(cpv, tag, offset)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
mcpcia_conf_read(void *cpv, pcitag_t tag, int offset)
|
||||
{
|
||||
struct mcpcia_config *ccp = cpv;
|
||||
pcireg_t *dp, data = (pcireg_t) -1;
|
||||
|
@ -146,11 +139,7 @@ mcpcia_conf_read(cpv, tag, offset)
|
|||
}
|
||||
|
||||
static void
|
||||
mcpcia_conf_write(cpv, tag, offset, data)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
pcireg_t data;
|
||||
mcpcia_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
|
||||
{
|
||||
struct mcpcia_config *ccp = cpv;
|
||||
pcireg_t *dp;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_1000.c,v 1.19 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_1000.c,v 1.20 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -60,7 +60,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_1000.c,v 1.19 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_1000.c,v 1.20 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -149,9 +149,7 @@ pci_1000_pickintr(core, iot, memt, pc)
|
|||
}
|
||||
|
||||
int
|
||||
dec_1000_intr_map(pa, ihp)
|
||||
struct pci_attach_args *pa;
|
||||
pci_intr_handle_t *ihp;
|
||||
dec_1000_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
@ -183,9 +181,7 @@ bad: printf("dec_1000_intr_map: can't map dev %d pin %d\n", device, buspin);
|
|||
}
|
||||
|
||||
const char *
|
||||
dec_1000_intr_string(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_1000_intr_string(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
static const char irqmsg_fmt[] = "dec_1000 irq %ld";
|
||||
static char irqstr[sizeof irqmsg_fmt];
|
||||
|
@ -198,9 +194,7 @@ dec_1000_intr_string(ccv, ih)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
dec_1000_intr_evcnt(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_1000_intr_evcnt(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
|
||||
if (ih >= PCI_NIRQ)
|
||||
|
@ -256,9 +250,7 @@ dec_1000_intr_disestablish(ccv, cookie)
|
|||
}
|
||||
|
||||
static void
|
||||
dec_1000_iointr(arg, vec)
|
||||
void *arg;
|
||||
unsigned long vec;
|
||||
dec_1000_iointr(void *arg, unsigned long vec)
|
||||
{
|
||||
int irq;
|
||||
|
||||
|
@ -288,15 +280,13 @@ dec_1000_iointr(arg, vec)
|
|||
*/
|
||||
|
||||
static void
|
||||
dec_1000_enable_intr(irq)
|
||||
int irq;
|
||||
dec_1000_enable_intr(int irq)
|
||||
{
|
||||
IW(IR() | 1 << irq);
|
||||
}
|
||||
|
||||
static void
|
||||
dec_1000_disable_intr(irq)
|
||||
int irq;
|
||||
dec_1000_disable_intr(int irq)
|
||||
{
|
||||
IW(IR() & ~(1 << irq));
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_1000a.c,v 1.21 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_1000a.c,v 1.22 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -60,7 +60,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_1000a.c,v 1.21 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_1000a.c,v 1.22 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -153,9 +153,7 @@ pci_1000a_pickintr(core, iot, memt, pc)
|
|||
}
|
||||
|
||||
int
|
||||
dec_1000a_intr_map(pa, ihp)
|
||||
struct pci_attach_args *pa;
|
||||
pci_intr_handle_t *ihp;
|
||||
dec_1000a_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
@ -203,9 +201,7 @@ bad: printf("dec_1000a_intr_map: can't map dev %d pin %d\n", device, buspin);
|
|||
}
|
||||
|
||||
const char *
|
||||
dec_1000a_intr_string(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_1000a_intr_string(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
static const char irqmsg_fmt[] = "dec_1000a irq %ld";
|
||||
static char irqstr[sizeof irqmsg_fmt];
|
||||
|
@ -219,9 +215,7 @@ dec_1000a_intr_string(ccv, ih)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
dec_1000a_intr_evcnt(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_1000a_intr_evcnt(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
|
||||
if (ih >= PCI_NIRQ)
|
||||
|
@ -277,9 +271,7 @@ dec_1000a_intr_disestablish(ccv, cookie)
|
|||
}
|
||||
|
||||
static void
|
||||
dec_1000a_iointr(framep, vec)
|
||||
void *framep;
|
||||
unsigned long vec;
|
||||
dec_1000a_iointr(void *framep, unsigned long vec)
|
||||
{
|
||||
int irq;
|
||||
|
||||
|
@ -306,8 +298,7 @@ dec_1000a_iointr(framep, vec)
|
|||
*/
|
||||
|
||||
static void
|
||||
dec_1000a_enable_intr(irq)
|
||||
int irq;
|
||||
dec_1000a_enable_intr(int irq)
|
||||
{
|
||||
int imrval = IRQ2IMR(irq);
|
||||
int i = imrval >= 16;
|
||||
|
@ -316,8 +307,7 @@ dec_1000a_enable_intr(irq)
|
|||
}
|
||||
|
||||
static void
|
||||
dec_1000a_disable_intr(irq)
|
||||
int irq;
|
||||
dec_1000a_disable_intr(int irq)
|
||||
{
|
||||
int imrval = IRQ2IMR(irq);
|
||||
int i = imrval >= 16;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_2100_a50.c,v 1.33 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_2100_a50.c,v 1.34 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_2100_a50.c,v 1.33 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_2100_a50.c,v 1.34 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -66,8 +66,7 @@ void dec_2100_a50_intr_disestablish(void *, void *);
|
|||
#define APECS_SIO_DEVICE 7 /* XXX */
|
||||
|
||||
void
|
||||
pci_2100_a50_pickintr(acp)
|
||||
struct apecs_config *acp;
|
||||
pci_2100_a50_pickintr(struct apecs_config *acp)
|
||||
{
|
||||
bus_space_tag_t iot = &acp->ac_iot;
|
||||
pci_chipset_tag_t pc = &acp->ac_pc;
|
||||
|
@ -99,9 +98,7 @@ pci_2100_a50_pickintr(acp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_2100_a50_intr_map(pa, ihp)
|
||||
struct pci_attach_args *pa;
|
||||
pci_intr_handle_t *ihp;
|
||||
dec_2100_a50_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
@ -219,9 +216,7 @@ dec_2100_a50_intr_map(pa, ihp)
|
|||
}
|
||||
|
||||
const char *
|
||||
dec_2100_a50_intr_string(acv, ih)
|
||||
void *acv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_2100_a50_intr_string(void *acv, pci_intr_handle_t ih)
|
||||
{
|
||||
#if 0
|
||||
struct apecs_config *acp = acv;
|
||||
|
@ -231,9 +226,7 @@ dec_2100_a50_intr_string(acv, ih)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
dec_2100_a50_intr_evcnt(acv, ih)
|
||||
void *acv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_2100_a50_intr_evcnt(void *acv, pci_intr_handle_t ih)
|
||||
{
|
||||
#if 0
|
||||
struct apecs_config *acp = acv;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_550.c,v 1.29 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_550.c,v 1.30 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -59,7 +59,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_550.c,v 1.29 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_550.c,v 1.30 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -126,8 +126,7 @@ void dec_550_intr_enable(int irq);
|
|||
void dec_550_intr_disable(int irq);
|
||||
|
||||
void
|
||||
pci_550_pickintr(ccp)
|
||||
struct cia_config *ccp;
|
||||
pci_550_pickintr(struct cia_config *ccp)
|
||||
{
|
||||
bus_space_tag_t iot = &ccp->cc_iot;
|
||||
pci_chipset_tag_t pc = &ccp->cc_pc;
|
||||
|
@ -171,9 +170,7 @@ pci_550_pickintr(ccp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_550_intr_map(pa, ihp)
|
||||
struct pci_attach_args *pa;
|
||||
pci_intr_handle_t *ihp;
|
||||
dec_550_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin, line = pa->pa_intrline;
|
||||
|
@ -252,9 +249,7 @@ dec_550_intr_map(pa, ihp)
|
|||
}
|
||||
|
||||
const char *
|
||||
dec_550_intr_string(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_550_intr_string(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
#if 0
|
||||
struct cia_config *ccp = ccv;
|
||||
|
@ -274,9 +269,7 @@ dec_550_intr_string(ccv, ih)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
dec_550_intr_evcnt(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_550_intr_evcnt(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
#if 0
|
||||
struct cia_config *ccp = ccv;
|
||||
|
@ -397,9 +390,7 @@ dec_550_pciide_compat_intr_establish(v, dev, pa, chan, func, arg)
|
|||
}
|
||||
|
||||
void
|
||||
dec_550_iointr(arg, vec)
|
||||
void *arg;
|
||||
unsigned long vec;
|
||||
dec_550_iointr(void *arg, unsigned long vec)
|
||||
{
|
||||
int irq;
|
||||
|
||||
|
@ -418,16 +409,14 @@ dec_550_iointr(arg, vec)
|
|||
}
|
||||
|
||||
void
|
||||
dec_550_intr_enable(irq)
|
||||
int irq;
|
||||
dec_550_intr_enable(int irq)
|
||||
{
|
||||
|
||||
cia_pyxis_intr_enable(irq + DEC_550_PCI_IRQ_BEGIN, 1);
|
||||
}
|
||||
|
||||
void
|
||||
dec_550_intr_disable(irq)
|
||||
int irq;
|
||||
dec_550_intr_disable(int irq)
|
||||
{
|
||||
|
||||
cia_pyxis_intr_enable(irq + DEC_550_PCI_IRQ_BEGIN, 0);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_6600.c,v 1.16 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_6600.c,v 1.17 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 by Ross Harvey. All rights reserved.
|
||||
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_6600.c,v 1.16 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_6600.c,v 1.17 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -96,8 +96,7 @@ extern void dec_6600_intr_enable(int irq);
|
|||
extern void dec_6600_intr_disable(int irq);
|
||||
|
||||
void
|
||||
pci_6600_pickintr(pcp)
|
||||
struct tsp_config *pcp;
|
||||
pci_6600_pickintr(struct tsp_config *pcp)
|
||||
{
|
||||
bus_space_tag_t iot = &pcp->pc_iot;
|
||||
pci_chipset_tag_t pc = &pcp->pc_pc;
|
||||
|
@ -140,9 +139,7 @@ pci_6600_pickintr(pcp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_6600_intr_map(pa, ihp)
|
||||
struct pci_attach_args *pa;
|
||||
pci_intr_handle_t *ihp;
|
||||
dec_6600_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin, line = pa->pa_intrline;
|
||||
|
@ -187,9 +184,7 @@ dec_6600_intr_map(pa, ihp)
|
|||
}
|
||||
|
||||
const char *
|
||||
dec_6600_intr_string(acv, ih)
|
||||
void *acv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_6600_intr_string(void *acv, pci_intr_handle_t ih)
|
||||
{
|
||||
|
||||
static const char irqfmt[] = "dec 6600 irq %ld";
|
||||
|
@ -206,9 +201,7 @@ dec_6600_intr_string(acv, ih)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
dec_6600_intr_evcnt(acv, ih)
|
||||
void *acv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_6600_intr_evcnt(void *acv, pci_intr_handle_t ih)
|
||||
{
|
||||
|
||||
#if NSIO
|
||||
|
@ -286,9 +279,7 @@ dec_6600_intr_disestablish(acv, cookie)
|
|||
}
|
||||
|
||||
void
|
||||
dec_6600_iointr(arg, vec)
|
||||
void *arg;
|
||||
unsigned long vec;
|
||||
dec_6600_iointr(void *arg, unsigned long vec)
|
||||
{
|
||||
int irq;
|
||||
|
||||
|
@ -307,8 +298,7 @@ dec_6600_iointr(arg, vec)
|
|||
}
|
||||
|
||||
void
|
||||
dec_6600_intr_enable(irq)
|
||||
int irq;
|
||||
dec_6600_intr_enable(int irq)
|
||||
{
|
||||
alpha_mb();
|
||||
STQP(TS_C_DIM0) |= 1UL << irq;
|
||||
|
@ -316,8 +306,7 @@ dec_6600_intr_enable(irq)
|
|||
}
|
||||
|
||||
void
|
||||
dec_6600_intr_disable(irq)
|
||||
int irq;
|
||||
dec_6600_intr_disable(int irq)
|
||||
{
|
||||
alpha_mb();
|
||||
STQP(TS_C_DIM0) &= ~(1UL << irq);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_a12.c,v 1.8 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_a12.c,v 1.9 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/* [Notice revision 2.0]
|
||||
* Copyright (c) 1997, 1998 Avalon Computer Systems, Inc.
|
||||
|
@ -38,7 +38,7 @@
|
|||
#include "opt_avalon_a12.h" /* Config options headers */
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_a12.c,v 1.8 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_a12.c,v 1.9 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -115,8 +115,7 @@ static void a12_GInt(void);
|
|||
void a12_iointr(void *framep, unsigned long vec);
|
||||
|
||||
void
|
||||
pci_a12_pickintr(ccp)
|
||||
struct a12c_config *ccp;
|
||||
pci_a12_pickintr(struct a12c_config *ccp)
|
||||
{
|
||||
pci_chipset_tag_t pc = &ccp->ac_pc;
|
||||
|
||||
|
@ -149,17 +148,13 @@ avalon_a12_intr_map(ccv, bustag, buspin, line, ihp)
|
|||
}
|
||||
|
||||
const char *
|
||||
avalon_a12_intr_string(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
avalon_a12_intr_string(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
return "a12 pci irq"; /* see "only one" note above */
|
||||
}
|
||||
|
||||
const struct evcnt *
|
||||
avalon_a12_intr_evcnt(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
avalon_a12_intr_evcnt(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
|
||||
return (&a12_intr_evcnt);
|
||||
|
@ -218,8 +213,7 @@ void a12_intr_register_icw(f)
|
|||
long a12_nothing;
|
||||
|
||||
static void
|
||||
clear_gsr_interrupt(write_1_to_clear)
|
||||
long write_1_to_clear;
|
||||
clear_gsr_interrupt(long write_1_to_clear)
|
||||
{
|
||||
REGVAL(A12_GSR) = write_1_to_clear;
|
||||
alpha_mb();
|
||||
|
@ -227,15 +221,13 @@ clear_gsr_interrupt(write_1_to_clear)
|
|||
}
|
||||
|
||||
static int
|
||||
pci_serr(p)
|
||||
void *p;
|
||||
pci_serr(void *p)
|
||||
{
|
||||
panic("pci_serr");
|
||||
}
|
||||
|
||||
static int
|
||||
a12_xbar_flag(p)
|
||||
void *p;
|
||||
a12_xbar_flag(void *p)
|
||||
{
|
||||
panic("a12_xbar_flag: %s", p);
|
||||
}
|
||||
|
@ -280,9 +272,7 @@ void *s;
|
|||
*/
|
||||
|
||||
void
|
||||
a12_iointr(framep, vec)
|
||||
void *framep;
|
||||
unsigned long vec;
|
||||
a12_iointr(void *framep, unsigned long vec)
|
||||
{
|
||||
unsigned irq = (vec-0x900) >> 4; /* this is the f(vector) above */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_alphabook1.c,v 1.10 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_alphabook1.c,v 1.11 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -59,7 +59,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_alphabook1.c,v 1.10 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_alphabook1.c,v 1.11 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -96,8 +96,7 @@ void dec_alphabook1_intr_disestablish(void *, void *);
|
|||
#define LCA_SIO_DEVICE 7 /* XXX */
|
||||
|
||||
void
|
||||
pci_alphabook1_pickintr(lcp)
|
||||
struct lca_config *lcp;
|
||||
pci_alphabook1_pickintr(struct lca_config *lcp)
|
||||
{
|
||||
bus_space_tag_t iot = &lcp->lc_iot;
|
||||
pci_chipset_tag_t pc = &lcp->lc_pc;
|
||||
|
@ -130,9 +129,7 @@ pci_alphabook1_pickintr(lcp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_alphabook1_intr_map(pa, ihp)
|
||||
struct pci_attach_args *pa;
|
||||
pci_intr_handle_t *ihp;
|
||||
dec_alphabook1_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
@ -178,9 +175,7 @@ dec_alphabook1_intr_map(pa, ihp)
|
|||
}
|
||||
|
||||
const char *
|
||||
dec_alphabook1_intr_string(lcv, ih)
|
||||
void *lcv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_alphabook1_intr_string(void *lcv, pci_intr_handle_t ih)
|
||||
{
|
||||
#if 0
|
||||
struct lca_config *lcp = lcv;
|
||||
|
@ -190,9 +185,7 @@ dec_alphabook1_intr_string(lcv, ih)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
dec_alphabook1_intr_evcnt(lcv, ih)
|
||||
void *lcv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_alphabook1_intr_evcnt(void *lcv, pci_intr_handle_t ih)
|
||||
{
|
||||
#if 0
|
||||
struct lca_config *lcp = lcv;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_axppci_33.c,v 1.30 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_axppci_33.c,v 1.31 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_axppci_33.c,v 1.30 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_axppci_33.c,v 1.31 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -66,8 +66,7 @@ void dec_axppci_33_intr_disestablish(void *, void *);
|
|||
#define LCA_SIO_DEVICE 7 /* XXX */
|
||||
|
||||
void
|
||||
pci_axppci_33_pickintr(lcp)
|
||||
struct lca_config *lcp;
|
||||
pci_axppci_33_pickintr(struct lca_config *lcp)
|
||||
{
|
||||
bus_space_tag_t iot = &lcp->lc_iot;
|
||||
pci_chipset_tag_t pc = &lcp->lc_pc;
|
||||
|
@ -100,9 +99,7 @@ pci_axppci_33_pickintr(lcp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_axppci_33_intr_map(pa, ihp)
|
||||
struct pci_attach_args *pa;
|
||||
pci_intr_handle_t *ihp;
|
||||
dec_axppci_33_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
@ -219,9 +216,7 @@ dec_axppci_33_intr_map(pa, ihp)
|
|||
}
|
||||
|
||||
const char *
|
||||
dec_axppci_33_intr_string(lcv, ih)
|
||||
void *lcv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_axppci_33_intr_string(void *lcv, pci_intr_handle_t ih)
|
||||
{
|
||||
#if 0
|
||||
struct lca_config *lcp = lcv;
|
||||
|
@ -231,9 +226,7 @@ dec_axppci_33_intr_string(lcv, ih)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
dec_axppci_33_intr_evcnt(lcv, ih)
|
||||
void *lcv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_axppci_33_intr_evcnt(void *lcv, pci_intr_handle_t ih)
|
||||
{
|
||||
#if 0
|
||||
struct lca_config *lcp = lcv;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_eb164.c,v 1.37 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_eb164.c,v 1.38 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -59,7 +59,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_eb164.c,v 1.37 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_eb164.c,v 1.38 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -114,8 +114,7 @@ extern void eb164_intr_enable(int irq); /* pci_eb164_intr.S */
|
|||
extern void eb164_intr_disable(int irq); /* pci_eb164_intr.S */
|
||||
|
||||
void
|
||||
pci_eb164_pickintr(ccp)
|
||||
struct cia_config *ccp;
|
||||
pci_eb164_pickintr(struct cia_config *ccp)
|
||||
{
|
||||
bus_space_tag_t iot = &ccp->cc_iot;
|
||||
pci_chipset_tag_t pc = &ccp->cc_pc;
|
||||
|
@ -163,9 +162,7 @@ pci_eb164_pickintr(ccp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_eb164_intr_map(pa, ihp)
|
||||
struct pci_attach_args *pa;
|
||||
pci_intr_handle_t *ihp;
|
||||
dec_eb164_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin, line = pa->pa_intrline;
|
||||
|
@ -237,9 +234,7 @@ dec_eb164_intr_map(pa, ihp)
|
|||
}
|
||||
|
||||
const char *
|
||||
dec_eb164_intr_string(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_eb164_intr_string(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
#if 0
|
||||
struct cia_config *ccp = ccv;
|
||||
|
@ -253,9 +248,7 @@ dec_eb164_intr_string(ccv, ih)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
dec_eb164_intr_evcnt(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_eb164_intr_evcnt(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
#if 0
|
||||
struct cia_config *ccp = ccv;
|
||||
|
@ -352,9 +345,7 @@ dec_eb164_pciide_compat_intr_establish(v, dev, pa, chan, func, arg)
|
|||
}
|
||||
|
||||
void
|
||||
eb164_iointr(arg, vec)
|
||||
void *arg;
|
||||
unsigned long vec;
|
||||
eb164_iointr(void *arg, unsigned long vec)
|
||||
{
|
||||
int irq;
|
||||
|
||||
|
@ -373,8 +364,7 @@ eb164_iointr(arg, vec)
|
|||
u_int8_t eb164_intr_mask[3] = { 0xff, 0xff, 0xff };
|
||||
|
||||
void
|
||||
eb164_intr_enable(irq)
|
||||
int irq;
|
||||
eb164_intr_enable(int irq)
|
||||
{
|
||||
int byte = (irq / 8), bit = (irq % 8);
|
||||
|
||||
|
@ -388,8 +378,7 @@ eb164_intr_enable(irq)
|
|||
}
|
||||
|
||||
void
|
||||
eb164_intr_disable(irq)
|
||||
int irq;
|
||||
eb164_intr_disable(int irq)
|
||||
{
|
||||
int byte = (irq / 8), bit = (irq % 8);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_eb64plus.c,v 1.17 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_eb64plus.c,v 1.18 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -59,7 +59,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_eb64plus.c,v 1.17 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_eb64plus.c,v 1.18 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -108,8 +108,7 @@ extern void eb64plus_intr_enable(int irq); /* pci_eb64plus_intr.S */
|
|||
extern void eb64plus_intr_disable(int irq); /* pci_eb64plus_intr.S */
|
||||
|
||||
void
|
||||
pci_eb64plus_pickintr(acp)
|
||||
struct apecs_config *acp;
|
||||
pci_eb64plus_pickintr(struct apecs_config *acp)
|
||||
{
|
||||
bus_space_tag_t iot = &acp->ac_iot;
|
||||
pci_chipset_tag_t pc = &acp->ac_pc;
|
||||
|
@ -151,9 +150,7 @@ pci_eb64plus_pickintr(acp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_eb64plus_intr_map(pa, ihp)
|
||||
struct pci_attach_args *pa;
|
||||
pci_intr_handle_t *ihp;
|
||||
dec_eb64plus_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin, line = pa->pa_intrline;
|
||||
|
@ -190,9 +187,7 @@ dec_eb64plus_intr_map(pa, ihp)
|
|||
}
|
||||
|
||||
const char *
|
||||
dec_eb64plus_intr_string(acv, ih)
|
||||
void *acv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_eb64plus_intr_string(void *acv, pci_intr_handle_t ih)
|
||||
{
|
||||
static char irqstr[15]; /* 11 + 2 + NULL + sanity */
|
||||
|
||||
|
@ -203,9 +198,7 @@ dec_eb64plus_intr_string(acv, ih)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
dec_eb64plus_intr_evcnt(acv, ih)
|
||||
void *acv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_eb64plus_intr_evcnt(void *acv, pci_intr_handle_t ih)
|
||||
{
|
||||
|
||||
if (ih > EB64PLUS_MAX_IRQ)
|
||||
|
@ -261,9 +254,7 @@ dec_eb64plus_intr_disestablish(acv, cookie)
|
|||
}
|
||||
|
||||
void
|
||||
eb64plus_iointr(arg, vec)
|
||||
void *arg;
|
||||
unsigned long vec;
|
||||
eb64plus_iointr(void *arg, unsigned long vec)
|
||||
{
|
||||
int irq;
|
||||
|
||||
|
@ -282,8 +273,7 @@ eb64plus_iointr(arg, vec)
|
|||
u_int8_t eb64plus_intr_mask[3] = { 0xff, 0xff, 0xff };
|
||||
|
||||
void
|
||||
eb64plus_intr_enable(irq)
|
||||
int irq;
|
||||
eb64plus_intr_enable(int irq)
|
||||
{
|
||||
int byte = (irq / 8), bit = (irq % 8);
|
||||
|
||||
|
@ -297,8 +287,7 @@ eb64plus_intr_enable(irq)
|
|||
}
|
||||
|
||||
void
|
||||
eb64plus_intr_disable(irq)
|
||||
int irq;
|
||||
eb64plus_intr_disable(int irq)
|
||||
{
|
||||
int byte = (irq / 8), bit = (irq % 8);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_eb66.c,v 1.17 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_eb66.c,v 1.18 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -59,7 +59,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_eb66.c,v 1.17 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_eb66.c,v 1.18 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -108,8 +108,7 @@ extern void eb66_intr_enable(int irq); /* pci_eb66_intr.S */
|
|||
extern void eb66_intr_disable(int irq); /* pci_eb66_intr.S */
|
||||
|
||||
void
|
||||
pci_eb66_pickintr(lcp)
|
||||
struct lca_config *lcp;
|
||||
pci_eb66_pickintr(struct lca_config *lcp)
|
||||
{
|
||||
bus_space_tag_t iot = &lcp->lc_iot;
|
||||
pci_chipset_tag_t pc = &lcp->lc_pc;
|
||||
|
@ -151,9 +150,7 @@ pci_eb66_pickintr(lcp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_eb66_intr_map(pa, ihp)
|
||||
struct pci_attach_args *pa;
|
||||
pci_intr_handle_t *ihp;
|
||||
dec_eb66_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin, line = pa->pa_intrline;
|
||||
|
@ -190,9 +187,7 @@ dec_eb66_intr_map(pa, ihp)
|
|||
}
|
||||
|
||||
const char *
|
||||
dec_eb66_intr_string(lcv, ih)
|
||||
void *lcv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_eb66_intr_string(void *lcv, pci_intr_handle_t ih)
|
||||
{
|
||||
static char irqstr[15]; /* 11 + 2 + NULL + sanity */
|
||||
|
||||
|
@ -203,9 +198,7 @@ dec_eb66_intr_string(lcv, ih)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
dec_eb66_intr_evcnt(lcv, ih)
|
||||
void *lcv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_eb66_intr_evcnt(void *lcv, pci_intr_handle_t ih)
|
||||
{
|
||||
|
||||
if (ih >= EB66_MAX_IRQ)
|
||||
|
@ -260,9 +253,7 @@ dec_eb66_intr_disestablish(lcv, cookie)
|
|||
}
|
||||
|
||||
void
|
||||
eb66_iointr(arg, vec)
|
||||
void *arg;
|
||||
unsigned long vec;
|
||||
eb66_iointr(void *arg, unsigned long vec)
|
||||
{
|
||||
int irq;
|
||||
|
||||
|
@ -281,8 +272,7 @@ eb66_iointr(arg, vec)
|
|||
u_int8_t eb66_intr_mask[3] = { 0xff, 0xff, 0xff };
|
||||
|
||||
void
|
||||
eb66_intr_enable(irq)
|
||||
int irq;
|
||||
eb66_intr_enable(int irq)
|
||||
{
|
||||
int byte = (irq / 8), bit = (irq % 8);
|
||||
|
||||
|
@ -296,8 +286,7 @@ eb66_intr_enable(irq)
|
|||
}
|
||||
|
||||
void
|
||||
eb66_intr_disable(irq)
|
||||
int irq;
|
||||
eb66_intr_disable(int irq)
|
||||
{
|
||||
int byte = (irq / 8), bit = (irq % 8);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_kn20aa.c,v 1.48 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_kn20aa.c,v 1.49 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_kn20aa.c,v 1.48 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_kn20aa.c,v 1.49 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -76,8 +76,7 @@ void kn20aa_enable_intr(int irq);
|
|||
void kn20aa_disable_intr(int irq);
|
||||
|
||||
void
|
||||
pci_kn20aa_pickintr(ccp)
|
||||
struct cia_config *ccp;
|
||||
pci_kn20aa_pickintr(struct cia_config *ccp)
|
||||
{
|
||||
int i;
|
||||
#if NSIO > 0 || NPCEB > 0
|
||||
|
@ -115,9 +114,7 @@ pci_kn20aa_pickintr(ccp)
|
|||
}
|
||||
|
||||
int
|
||||
dec_kn20aa_intr_map(pa, ihp)
|
||||
struct pci_attach_args *pa;
|
||||
pci_intr_handle_t *ihp;
|
||||
dec_kn20aa_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
@ -180,9 +177,7 @@ dec_kn20aa_intr_map(pa, ihp)
|
|||
}
|
||||
|
||||
const char *
|
||||
dec_kn20aa_intr_string(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_kn20aa_intr_string(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
#if 0
|
||||
struct cia_config *ccp = ccv;
|
||||
|
@ -198,9 +193,7 @@ dec_kn20aa_intr_string(ccv, ih)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
dec_kn20aa_intr_evcnt(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_kn20aa_intr_evcnt(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
#if 0
|
||||
struct cia_config *ccp = ccv;
|
||||
|
@ -265,9 +258,7 @@ dec_kn20aa_intr_disestablish(ccv, cookie)
|
|||
}
|
||||
|
||||
void
|
||||
kn20aa_iointr(arg, vec)
|
||||
void *arg;
|
||||
unsigned long vec;
|
||||
kn20aa_iointr(void *arg, unsigned long vec)
|
||||
{
|
||||
int irq;
|
||||
|
||||
|
@ -283,8 +274,7 @@ kn20aa_iointr(arg, vec)
|
|||
}
|
||||
|
||||
void
|
||||
kn20aa_enable_intr(irq)
|
||||
int irq;
|
||||
kn20aa_enable_intr(int irq)
|
||||
{
|
||||
|
||||
/*
|
||||
|
@ -299,8 +289,7 @@ kn20aa_enable_intr(irq)
|
|||
}
|
||||
|
||||
void
|
||||
kn20aa_disable_intr(irq)
|
||||
int irq;
|
||||
kn20aa_disable_intr(int irq)
|
||||
{
|
||||
|
||||
alpha_mb();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_kn300.c,v 1.30 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_kn300.c,v 1.31 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 by Matthew Jacob
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_kn300.c,v 1.30 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_kn300.c,v 1.31 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -84,9 +84,7 @@ void kn300_enable_intr(struct mcpcia_config *, int);
|
|||
void kn300_disable_intr(struct mcpcia_config *, int);
|
||||
|
||||
void
|
||||
pci_kn300_pickintr(ccp, first)
|
||||
struct mcpcia_config *ccp;
|
||||
int first;
|
||||
pci_kn300_pickintr(struct mcpcia_config *ccp, int first)
|
||||
{
|
||||
char *cp;
|
||||
pci_chipset_tag_t pc = &ccp->cc_pc;
|
||||
|
@ -126,9 +124,7 @@ pci_kn300_pickintr(ccp, first)
|
|||
}
|
||||
|
||||
int
|
||||
dec_kn300_intr_map(pa, ihp)
|
||||
struct pci_attach_args *pa;
|
||||
pci_intr_handle_t *ihp;
|
||||
dec_kn300_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
@ -182,9 +178,7 @@ dec_kn300_intr_map(pa, ihp)
|
|||
}
|
||||
|
||||
const char *
|
||||
dec_kn300_intr_string(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_kn300_intr_string(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
static char irqstr[64];
|
||||
|
||||
|
@ -193,9 +187,7 @@ dec_kn300_intr_string(ccv, ih)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
dec_kn300_intr_evcnt(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_kn300_intr_evcnt(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
|
||||
return (alpha_shared_intr_evcnt(kn300_pci_intr, ih & 0x3ff));
|
||||
|
@ -237,9 +229,7 @@ dec_kn300_intr_disestablish(ccv, cookie)
|
|||
}
|
||||
|
||||
void
|
||||
kn300_iointr(arg, vec)
|
||||
void *arg;
|
||||
unsigned long vec;
|
||||
kn300_iointr(void *arg, unsigned long vec)
|
||||
{
|
||||
struct mcpcia_softc *mcp;
|
||||
u_long irq;
|
||||
|
@ -284,9 +274,7 @@ kn300_iointr(arg, vec)
|
|||
}
|
||||
|
||||
void
|
||||
kn300_enable_intr(ccp, irq)
|
||||
struct mcpcia_config *ccp;
|
||||
int irq;
|
||||
kn300_enable_intr(struct mcpcia_config *ccp, int irq)
|
||||
{
|
||||
alpha_mb();
|
||||
REGVAL(MCPCIA_INT_MASK0(ccp)) |= (1 << irq);
|
||||
|
@ -294,9 +282,7 @@ kn300_enable_intr(ccp, irq)
|
|||
}
|
||||
|
||||
void
|
||||
kn300_disable_intr(ccp, irq)
|
||||
struct mcpcia_config *ccp;
|
||||
int irq;
|
||||
kn300_disable_intr(struct mcpcia_config *ccp, int irq)
|
||||
{
|
||||
alpha_mb();
|
||||
REGVAL(MCPCIA_INT_MASK0(ccp)) &= ~(1 << irq);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_kn8ae.c,v 1.22 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: pci_kn8ae.c,v 1.23 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 by Matthew Jacob
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_kn8ae.c,v 1.22 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_kn8ae.c,v 1.23 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -68,9 +68,7 @@ void kn8ae_spurious(void *, u_long);
|
|||
void kn8ae_enadis_intr(struct dwlpx_config *, pci_intr_handle_t, int);
|
||||
|
||||
void
|
||||
pci_kn8ae_pickintr(ccp, first)
|
||||
struct dwlpx_config *ccp;
|
||||
int first;
|
||||
pci_kn8ae_pickintr(struct dwlpx_config *ccp, int first)
|
||||
{
|
||||
int io, hose, dev;
|
||||
pci_chipset_tag_t pc = &ccp->cc_pc;
|
||||
|
@ -106,9 +104,7 @@ pci_kn8ae_pickintr(ccp, first)
|
|||
#define IH_PIN(ih) (((ih) >> 24) & 0xff)
|
||||
|
||||
int
|
||||
dec_kn8ae_intr_map(pa, ihp)
|
||||
struct pci_attach_args *pa;
|
||||
pci_intr_handle_t *ihp;
|
||||
dec_kn8ae_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
|
||||
{
|
||||
pcitag_t bustag = pa->pa_intrtag;
|
||||
int buspin = pa->pa_intrpin;
|
||||
|
@ -139,9 +135,7 @@ dec_kn8ae_intr_map(pa, ihp)
|
|||
}
|
||||
|
||||
const char *
|
||||
dec_kn8ae_intr_string(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_kn8ae_intr_string(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
static char irqstr[64];
|
||||
|
||||
|
@ -151,9 +145,7 @@ dec_kn8ae_intr_string(ccv, ih)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
dec_kn8ae_intr_evcnt(ccv, ih)
|
||||
void *ccv;
|
||||
pci_intr_handle_t ih;
|
||||
dec_kn8ae_intr_evcnt(void *ccv, pci_intr_handle_t ih)
|
||||
{
|
||||
|
||||
/* XXX for now, no evcnt parent reported */
|
||||
|
@ -239,10 +231,7 @@ kn8ae_spurious(void *arg, u_long vec)
|
|||
}
|
||||
|
||||
void
|
||||
kn8ae_enadis_intr(ccp, irq, onoff)
|
||||
struct dwlpx_config *ccp;
|
||||
pci_intr_handle_t irq;
|
||||
int onoff;
|
||||
kn8ae_enadis_intr(struct dwlpx_config *ccp, pci_intr_handle_t irq, int onoff)
|
||||
{
|
||||
struct dwlpx_softc *sc = ccp->cc_sc;
|
||||
unsigned long paddr;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sio.c,v 1.44 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: sio.c,v 1.45 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -63,7 +63,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: sio.c,v 1.44 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sio.c,v 1.45 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -135,10 +135,7 @@ int sio_eisa_intr_map(void *, u_int, eisa_intr_handle_t *);
|
|||
void sio_bridge_callback(struct device *);
|
||||
|
||||
int
|
||||
siomatch(parent, match, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *match;
|
||||
void *aux;
|
||||
siomatch(struct device *parent, struct cfdata *match, void *aux)
|
||||
{
|
||||
struct pci_attach_args *pa = aux;
|
||||
|
||||
|
@ -165,10 +162,7 @@ siomatch(parent, match, aux)
|
|||
|
||||
#if NPCEB > 0
|
||||
int
|
||||
pcebmatch(parent, match, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *match;
|
||||
void *aux;
|
||||
pcebmatch(struct device *parent, struct cfdata *match, void *aux)
|
||||
{
|
||||
struct pci_attach_args *pa = aux;
|
||||
|
||||
|
@ -208,8 +202,7 @@ sioattach(parent, self, aux)
|
|||
}
|
||||
|
||||
void
|
||||
sio_bridge_callback(self)
|
||||
struct device *self;
|
||||
sio_bridge_callback(struct device *self)
|
||||
{
|
||||
struct sio_softc *sc = (struct sio_softc *)self;
|
||||
union sio_attach_args sa;
|
||||
|
@ -316,18 +309,14 @@ sio_eisa_attach_hook(parent, self, eba)
|
|||
}
|
||||
|
||||
int
|
||||
sio_eisa_maxslots(v)
|
||||
void *v;
|
||||
sio_eisa_maxslots(void *v)
|
||||
{
|
||||
|
||||
return 16; /* as good a number as any. only 8, maybe? */
|
||||
}
|
||||
|
||||
int
|
||||
sio_eisa_intr_map(v, irq, ihp)
|
||||
void *v;
|
||||
u_int irq;
|
||||
eisa_intr_handle_t *ihp;
|
||||
sio_eisa_intr_map(void *v, u_int irq, eisa_intr_handle_t *ihp)
|
||||
{
|
||||
|
||||
#define ICU_LEN 16 /* number of ISA IRQs (XXX) */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sio_pic.c,v 1.37 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: sio_pic.c,v 1.38 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -59,7 +59,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: sio_pic.c,v 1.37 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sio_pic.c,v 1.38 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -157,17 +157,14 @@ i82378_setup_elcr()
|
|||
}
|
||||
|
||||
u_int8_t
|
||||
i82378_read_elcr(elcr)
|
||||
int elcr;
|
||||
i82378_read_elcr(int elcr)
|
||||
{
|
||||
|
||||
return (bus_space_read_1(sio_iot, sio_ioh_elcr, elcr));
|
||||
}
|
||||
|
||||
void
|
||||
i82378_write_elcr(elcr, val)
|
||||
int elcr;
|
||||
u_int8_t val;
|
||||
i82378_write_elcr(int elcr, u_int8_t val)
|
||||
{
|
||||
|
||||
bus_space_write_1(sio_iot, sio_ioh_elcr, elcr, val);
|
||||
|
@ -240,17 +237,14 @@ cy82c693_setup_elcr()
|
|||
}
|
||||
|
||||
u_int8_t
|
||||
cy82c693_read_elcr(elcr)
|
||||
int elcr;
|
||||
cy82c693_read_elcr(int elcr)
|
||||
{
|
||||
|
||||
return (cy82c693_read(sio_cy82c693_handle, CONFIG_ELCR1 + elcr));
|
||||
}
|
||||
|
||||
void
|
||||
cy82c693_write_elcr(elcr, val)
|
||||
int elcr;
|
||||
u_int8_t val;
|
||||
cy82c693_write_elcr(int elcr, u_int8_t val)
|
||||
{
|
||||
|
||||
cy82c693_write(sio_cy82c693_handle, CONFIG_ELCR1 + elcr, val);
|
||||
|
@ -324,9 +318,7 @@ sio_setirqstat(irq, enabled, type)
|
|||
}
|
||||
|
||||
void
|
||||
sio_intr_setup(pc, iot)
|
||||
pci_chipset_tag_t pc;
|
||||
bus_space_tag_t iot;
|
||||
sio_intr_setup(pci_chipset_tag_t pc, bus_space_tag_t iot)
|
||||
{
|
||||
char *cp;
|
||||
int i;
|
||||
|
@ -409,8 +401,7 @@ sio_intr_setup(pc, iot)
|
|||
|
||||
#ifdef BROKEN_PROM_CONSOLE
|
||||
void
|
||||
sio_intr_shutdown(arg)
|
||||
void *arg;
|
||||
sio_intr_shutdown(void *arg)
|
||||
{
|
||||
/*
|
||||
* Restore the initial values, to make the PROM happy.
|
||||
|
@ -423,9 +414,7 @@ sio_intr_shutdown(arg)
|
|||
#endif
|
||||
|
||||
const char *
|
||||
sio_intr_string(v, irq)
|
||||
void *v;
|
||||
int irq;
|
||||
sio_intr_string(void *v, int irq)
|
||||
{
|
||||
static char irqstr[12]; /* 8 + 2 + NULL + sanity */
|
||||
|
||||
|
@ -437,9 +426,7 @@ sio_intr_string(v, irq)
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
sio_intr_evcnt(v, irq)
|
||||
void *v;
|
||||
int irq;
|
||||
sio_intr_evcnt(void *v, int irq)
|
||||
{
|
||||
|
||||
if (irq == 0 || irq >= ICU_LEN || irq == 2)
|
||||
|
@ -476,9 +463,7 @@ sio_intr_establish(v, irq, type, level, fn, arg)
|
|||
}
|
||||
|
||||
void
|
||||
sio_intr_disestablish(v, cookie)
|
||||
void *v;
|
||||
void *cookie;
|
||||
sio_intr_disestablish(void *v, void *cookie)
|
||||
{
|
||||
struct alpha_shared_intrhand *ih = cookie;
|
||||
int s, ist, irq = ih->ih_num;
|
||||
|
@ -527,9 +512,7 @@ sio_intr_disestablish(v, cookie)
|
|||
}
|
||||
|
||||
void
|
||||
sio_iointr(arg, vec)
|
||||
void *arg;
|
||||
unsigned long vec;
|
||||
sio_iointr(void *arg, unsigned long vec)
|
||||
{
|
||||
int irq;
|
||||
|
||||
|
@ -557,11 +540,7 @@ sio_iointr(arg, vec)
|
|||
#define LEGAL_IRQ(x) ((x) >= 0 && (x) < ICU_LEN && (x) != 2)
|
||||
|
||||
int
|
||||
sio_intr_alloc(v, mask, type, irq)
|
||||
void *v;
|
||||
int mask;
|
||||
int type;
|
||||
int *irq;
|
||||
sio_intr_alloc(void *v, int mask, int type, int *irq)
|
||||
{
|
||||
int i, tmp, bestirq, count;
|
||||
struct alpha_shared_intrhand **p, *q;
|
||||
|
@ -630,8 +609,7 @@ sio_intr_alloc(v, mask, type, irq)
|
|||
}
|
||||
|
||||
static void
|
||||
specific_eoi(irq)
|
||||
int irq;
|
||||
specific_eoi(int irq)
|
||||
{
|
||||
if (irq > 7)
|
||||
bus_space_write_1(sio_iot,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tsc.c,v 1.14 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: tsc.c,v 1.15 2009/03/14 15:35:59 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 by Ross Harvey. All rights reserved.
|
||||
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: tsc.c,v 1.14 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tsc.c,v 1.15 2009/03/14 15:35:59 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -89,10 +89,7 @@ static int tscfound;
|
|||
int tsp_console_hose;
|
||||
|
||||
int
|
||||
tscmatch(parent, match, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *match;
|
||||
void *aux;
|
||||
tscmatch(struct device *parent, struct cfdata *match, void *aux)
|
||||
{
|
||||
struct mainbus_attach_args *ma = aux;
|
||||
|
||||
|
@ -140,9 +137,7 @@ void tscattach(parent, self, aux)
|
|||
}
|
||||
|
||||
static int
|
||||
tscprint(aux, p)
|
||||
void *aux;
|
||||
const char *p;
|
||||
tscprint(void *aux, const char *p)
|
||||
{
|
||||
register struct tsp_attach_args *tsp = aux;
|
||||
|
||||
|
@ -154,10 +149,7 @@ tscprint(aux, p)
|
|||
#define tsp() { Generate ctags(1) key. }
|
||||
|
||||
int
|
||||
tspmatch(parent, match, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *match;
|
||||
void *aux;
|
||||
tspmatch(struct device *parent, struct cfdata *match, void *aux)
|
||||
{
|
||||
struct tsp_attach_args *t = aux;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tsp_dma.c,v 1.8 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: tsp_dma.c,v 1.9 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 by Ross Harvey. All rights reserved.
|
||||
|
@ -62,7 +62,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: tsp_dma.c,v 1.8 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tsp_dma.c,v 1.9 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -111,8 +111,7 @@ void tsp_tlb_invalidate(struct tsp_config *);
|
|||
#define TSP_SGMAP_PFTHRESH 256
|
||||
|
||||
void
|
||||
tsp_dma_init(pcp)
|
||||
struct tsp_config *pcp;
|
||||
tsp_dma_init(struct tsp_config *pcp)
|
||||
{
|
||||
int i;
|
||||
bus_dma_tag_t t;
|
||||
|
@ -240,9 +239,7 @@ tsp_dma_init(pcp)
|
|||
* INTERNAL USE ONLY!
|
||||
*/
|
||||
bus_dma_tag_t
|
||||
tsp_dma_get_tag(t, bustype)
|
||||
bus_dma_tag_t t;
|
||||
alpha_bus_t bustype;
|
||||
tsp_dma_get_tag(bus_dma_tag_t t, alpha_bus_t bustype)
|
||||
{
|
||||
struct tsp_config *pcp = t->_cookie;
|
||||
|
||||
|
@ -273,13 +270,7 @@ tsp_dma_get_tag(t, bustype)
|
|||
* Load a TSP SGMAP-mapped DMA map with a linear buffer.
|
||||
*/
|
||||
int
|
||||
tsp_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
void *buf;
|
||||
bus_size_t buflen;
|
||||
struct proc *p;
|
||||
int flags;
|
||||
tsp_bus_dmamap_load_sgmap(bus_dma_tag_t t, bus_dmamap_t map, void *buf, bus_size_t buflen, struct proc *p, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -295,11 +286,7 @@ tsp_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
|||
* Load a TSP SGMAP-mapped DMA map with an mbuf chain.
|
||||
*/
|
||||
int
|
||||
tsp_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct mbuf *m;
|
||||
int flags;
|
||||
tsp_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct mbuf *m, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -314,11 +301,7 @@ tsp_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
|||
* Load a TSP SGMAP-mapped DMA map with a uio.
|
||||
*/
|
||||
int
|
||||
tsp_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct uio *uio;
|
||||
int flags;
|
||||
tsp_bus_dmamap_load_uio_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -333,13 +316,7 @@ tsp_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
|||
* Load a TSP SGMAP-mapped DMA map with raw memory.
|
||||
*/
|
||||
int
|
||||
tsp_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
bus_size_t size;
|
||||
int flags;
|
||||
tsp_bus_dmamap_load_raw_sgmap(bus_dma_tag_t t, bus_dmamap_t map, bus_dma_segment_t *segs, int nsegs, bus_size_t size, int flags)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -355,9 +332,7 @@ tsp_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
|||
* Unload a TSP DMA map.
|
||||
*/
|
||||
void
|
||||
tsp_bus_dmamap_unload_sgmap(t, map)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
tsp_bus_dmamap_unload_sgmap(bus_dma_tag_t t, bus_dmamap_t map)
|
||||
{
|
||||
|
||||
/*
|
||||
|
@ -377,8 +352,7 @@ tsp_bus_dmamap_unload_sgmap(t, map)
|
|||
* Flush the TSP scatter/gather TLB.
|
||||
*/
|
||||
void
|
||||
tsp_tlb_invalidate(pcp)
|
||||
struct tsp_config *pcp;
|
||||
tsp_tlb_invalidate(struct tsp_config *pcp)
|
||||
{
|
||||
|
||||
alpha_mb();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tsp_pci.c,v 1.4 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: tsp_pci.c,v 1.5 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 by Ross Harvey. All rights reserved.
|
||||
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: tsp_pci.c,v 1.4 2009/03/14 14:45:53 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tsp_pci.c,v 1.5 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -63,9 +63,7 @@ pcireg_t tsp_conf_read(void *, pcitag_t, int);
|
|||
void tsp_conf_write(void *, pcitag_t, int, pcireg_t);
|
||||
|
||||
void
|
||||
tsp_pci_init(pc, v)
|
||||
pci_chipset_tag_t pc;
|
||||
void *v;
|
||||
tsp_pci_init(pci_chipset_tag_t pc, void *v)
|
||||
{
|
||||
pc->pc_conf_v = v;
|
||||
pc->pc_attach_hook = tsp_attach_hook;
|
||||
|
@ -84,9 +82,7 @@ tsp_attach_hook(parent, self, pba)
|
|||
}
|
||||
|
||||
int
|
||||
tsp_bus_maxdevs(cpv, busno)
|
||||
void *cpv;
|
||||
int busno;
|
||||
tsp_bus_maxdevs(void *cpv, int busno)
|
||||
{
|
||||
return 32;
|
||||
}
|
||||
|
@ -118,10 +114,7 @@ tsp_decompose_tag(cpv, tag, bp, dp, fp)
|
|||
* no errors on unanswered probes.
|
||||
*/
|
||||
pcireg_t
|
||||
tsp_conf_read(cpv, tag, offset)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
tsp_conf_read(void *cpv, pcitag_t tag, int offset)
|
||||
{
|
||||
pcireg_t *datap, data;
|
||||
struct tsp_config *pcp = cpv;
|
||||
|
@ -134,11 +127,7 @@ tsp_conf_read(cpv, tag, offset)
|
|||
}
|
||||
|
||||
void
|
||||
tsp_conf_write(cpv, tag, offset, data)
|
||||
void *cpv;
|
||||
pcitag_t tag;
|
||||
int offset;
|
||||
pcireg_t data;
|
||||
tsp_conf_write(void *cpv, pcitag_t tag, int offset, pcireg_t data)
|
||||
{
|
||||
pcireg_t *datap;
|
||||
struct tsp_config *pcp = cpv;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: prom.c,v 1.11 2002/07/30 20:36:42 nathanw Exp $ */
|
||||
/* $NetBSD: prom.c,v 1.12 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -63,8 +63,7 @@ init_prom_calls()
|
|||
|
||||
#if !defined(NO_GETCHAR) || !defined(NO_PUTCHAR_HALT)
|
||||
static int
|
||||
test_getchar(xc)
|
||||
int *xc;
|
||||
test_getchar(int *xc)
|
||||
{
|
||||
prom_return_t ret;
|
||||
|
||||
|
@ -91,8 +90,7 @@ getchar()
|
|||
#endif
|
||||
|
||||
static void
|
||||
putonechar(c)
|
||||
int c;
|
||||
putonechar(int c)
|
||||
{
|
||||
prom_return_t ret;
|
||||
char cbuf = c;
|
||||
|
@ -103,8 +101,7 @@ putonechar(c)
|
|||
}
|
||||
|
||||
void
|
||||
putchar(c)
|
||||
int c;
|
||||
putchar(int c)
|
||||
{
|
||||
#if !defined(NO_PUTCHAR_HALT)
|
||||
int typed_c;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dev_net.c,v 1.13 2009/03/14 14:45:53 dsl Exp $ */
|
||||
/* $NetBSD: dev_net.c,v 1.14 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Gordon W. Ross
|
||||
|
@ -158,8 +158,7 @@ net_open(struct open_file *f, ...)
|
|||
}
|
||||
|
||||
int
|
||||
net_close(f)
|
||||
struct open_file *f;
|
||||
net_close(struct open_file *f)
|
||||
{
|
||||
|
||||
#ifdef NETIF_DEBUG
|
||||
|
@ -187,29 +186,19 @@ net_close(f)
|
|||
}
|
||||
|
||||
int
|
||||
net_ioctl(f, cmd, data)
|
||||
struct open_file *f;
|
||||
u_long cmd;
|
||||
void *data;
|
||||
net_ioctl(struct open_file *f, u_long cmd, void *data)
|
||||
{
|
||||
return EIO;
|
||||
}
|
||||
|
||||
int
|
||||
net_strategy(devdata, rw, blk, size, buf, rsize)
|
||||
void *devdata;
|
||||
int rw;
|
||||
daddr_t blk;
|
||||
size_t size;
|
||||
void *buf;
|
||||
size_t *rsize;
|
||||
net_strategy(void *devdata, int rw, daddr_t blk, size_t size, void *buf, size_t *rsize)
|
||||
{
|
||||
return EIO;
|
||||
}
|
||||
|
||||
int
|
||||
net_getparams(sock)
|
||||
int sock;
|
||||
net_getparams(int sock)
|
||||
{
|
||||
/*
|
||||
* Get info for NFS boot: our IP address, our hostname,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ioasic.c,v 1.40 2009/03/14 14:45:54 dsl Exp $ */
|
||||
/* $NetBSD: ioasic.c,v 1.41 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -61,7 +61,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: ioasic.c,v 1.40 2009/03/14 14:45:54 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ioasic.c,v 1.41 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
|
@ -125,10 +125,7 @@ tc_addr_t ioasic_base; /* XXX XXX XXX */
|
|||
int ioasicfound;
|
||||
|
||||
int
|
||||
ioasicmatch(parent, cfdata, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cfdata;
|
||||
void *aux;
|
||||
ioasicmatch(struct device *parent, struct cfdata *cfdata, void *aux)
|
||||
{
|
||||
struct tc_attach_args *ta = aux;
|
||||
|
||||
|
@ -274,8 +271,7 @@ ioasic_intr_disestablish(device_t ioa, void *cookie)
|
|||
}
|
||||
|
||||
int
|
||||
ioasic_intrnull(val)
|
||||
void *val;
|
||||
ioasic_intrnull(void *val)
|
||||
{
|
||||
|
||||
panic("ioasic_intrnull: uncaught IOASIC intr for cookie %ld",
|
||||
|
@ -286,8 +282,7 @@ ioasic_intrnull(val)
|
|||
* ASIC interrupt handler.
|
||||
*/
|
||||
int
|
||||
ioasic_intr(val)
|
||||
void *val;
|
||||
ioasic_intr(void *val)
|
||||
{
|
||||
register struct ioasic_softc *sc = val;
|
||||
register int ifound;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tc_3000_300.c,v 1.28 2009/03/14 14:45:54 dsl Exp $ */
|
||||
/* $NetBSD: tc_3000_300.c,v 1.29 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: tc_3000_300.c,v 1.28 2009/03/14 14:45:54 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tc_3000_300.c,v 1.29 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -120,9 +120,7 @@ tc_3000_300_intr_setup()
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
tc_3000_300_intr_evcnt(tcadev, cookie)
|
||||
struct device *tcadev;
|
||||
void *cookie;
|
||||
tc_3000_300_intr_evcnt(struct device *tcadev, void *cookie)
|
||||
{
|
||||
u_long dev = (u_long)cookie;
|
||||
|
||||
|
@ -168,9 +166,7 @@ tc_3000_300_intr_establish(tcadev, cookie, level, func, arg)
|
|||
}
|
||||
|
||||
void
|
||||
tc_3000_300_intr_disestablish(tcadev, cookie)
|
||||
struct device *tcadev;
|
||||
void *cookie;
|
||||
tc_3000_300_intr_disestablish(struct device *tcadev, void *cookie)
|
||||
{
|
||||
volatile u_int32_t *imskp;
|
||||
u_long dev = (u_long)cookie;
|
||||
|
@ -201,8 +197,7 @@ tc_3000_300_intr_disestablish(tcadev, cookie)
|
|||
}
|
||||
|
||||
int
|
||||
tc_3000_300_intrnull(val)
|
||||
void *val;
|
||||
tc_3000_300_intrnull(void *val)
|
||||
{
|
||||
|
||||
panic("tc_3000_300_intrnull: uncaught TC intr for cookie %ld",
|
||||
|
@ -210,9 +205,7 @@ tc_3000_300_intrnull(val)
|
|||
}
|
||||
|
||||
void
|
||||
tc_3000_300_iointr(arg, vec)
|
||||
void *arg;
|
||||
unsigned long vec;
|
||||
tc_3000_300_iointr(void *arg, unsigned long vec)
|
||||
{
|
||||
u_int32_t tcir, ioasicir, ioasicimr;
|
||||
int ifound;
|
||||
|
@ -294,8 +287,7 @@ tc_3000_300_iointr(arg, vec)
|
|||
* framebuffer as the output side of the console.
|
||||
*/
|
||||
int
|
||||
tc_3000_300_fb_cnattach(turbo_slot)
|
||||
u_int64_t turbo_slot;
|
||||
tc_3000_300_fb_cnattach(u_int64_t turbo_slot)
|
||||
{
|
||||
u_int32_t output_slot;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tc_3000_500.c,v 1.26 2009/03/14 14:45:54 dsl Exp $ */
|
||||
/* $NetBSD: tc_3000_500.c,v 1.27 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: tc_3000_500.c,v 1.26 2009/03/14 14:45:54 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tc_3000_500.c,v 1.27 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -144,9 +144,7 @@ tc_3000_500_intr_setup()
|
|||
}
|
||||
|
||||
const struct evcnt *
|
||||
tc_3000_500_intr_evcnt(tcadev, cookie)
|
||||
struct device *tcadev;
|
||||
void *cookie;
|
||||
tc_3000_500_intr_evcnt(struct device *tcadev, void *cookie)
|
||||
{
|
||||
u_long dev = (u_long)cookie;
|
||||
|
||||
|
@ -182,9 +180,7 @@ tc_3000_500_intr_establish(tcadev, cookie, level, func, arg)
|
|||
}
|
||||
|
||||
void
|
||||
tc_3000_500_intr_disestablish(tcadev, cookie)
|
||||
struct device *tcadev;
|
||||
void *cookie;
|
||||
tc_3000_500_intr_disestablish(struct device *tcadev, void *cookie)
|
||||
{
|
||||
u_long dev = (u_long)cookie;
|
||||
|
||||
|
@ -205,8 +201,7 @@ tc_3000_500_intr_disestablish(tcadev, cookie)
|
|||
}
|
||||
|
||||
int
|
||||
tc_3000_500_intrnull(val)
|
||||
void *val;
|
||||
tc_3000_500_intrnull(void *val)
|
||||
{
|
||||
|
||||
panic("tc_3000_500_intrnull: uncaught TC intr for cookie %ld",
|
||||
|
@ -214,9 +209,7 @@ tc_3000_500_intrnull(val)
|
|||
}
|
||||
|
||||
void
|
||||
tc_3000_500_iointr(arg, vec)
|
||||
void *arg;
|
||||
unsigned long vec;
|
||||
tc_3000_500_iointr(void *arg, unsigned long vec)
|
||||
{
|
||||
u_int32_t ir;
|
||||
int ifound;
|
||||
|
@ -292,8 +285,7 @@ tc_3000_500_iointr(arg, vec)
|
|||
* framebuffer as the output side of the console.
|
||||
*/
|
||||
int
|
||||
tc_3000_500_fb_cnattach(turbo_slot)
|
||||
u_int64_t turbo_slot;
|
||||
tc_3000_500_fb_cnattach(u_int64_t turbo_slot)
|
||||
{
|
||||
u_int32_t output_slot;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tc_bus_mem.c,v 1.28 2009/03/14 14:45:54 dsl Exp $ */
|
||||
/* $NetBSD: tc_bus_mem.c,v 1.29 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Carnegie-Mellon University.
|
||||
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: tc_bus_mem.c,v 1.28 2009/03/14 14:45:54 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tc_bus_mem.c,v 1.29 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -243,8 +243,7 @@ static struct alpha_bus_space tc_mem_space = {
|
|||
};
|
||||
|
||||
bus_space_tag_t
|
||||
tc_bus_mem_init(memv)
|
||||
void *memv;
|
||||
tc_bus_mem_init(void *memv)
|
||||
{
|
||||
bus_space_tag_t h = &tc_mem_space;
|
||||
|
||||
|
@ -254,12 +253,7 @@ tc_bus_mem_init(memv)
|
|||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
tc_mem_translate(v, memaddr, memlen, flags, abst)
|
||||
void *v;
|
||||
bus_addr_t memaddr;
|
||||
bus_size_t memlen;
|
||||
int flags;
|
||||
struct alpha_bus_space_translation *abst;
|
||||
tc_mem_translate(void *v, bus_addr_t memaddr, bus_size_t memlen, int flags, struct alpha_bus_space_translation *abst)
|
||||
{
|
||||
|
||||
return (EOPNOTSUPP);
|
||||
|
@ -267,10 +261,7 @@ tc_mem_translate(v, memaddr, memlen, flags, abst)
|
|||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
tc_mem_get_window(v, window, abst)
|
||||
void *v;
|
||||
int window;
|
||||
struct alpha_bus_space_translation *abst;
|
||||
tc_mem_get_window(void *v, int window, struct alpha_bus_space_translation *abst)
|
||||
{
|
||||
|
||||
return (EOPNOTSUPP);
|
||||
|
@ -278,13 +269,7 @@ tc_mem_get_window(v, window, abst)
|
|||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
tc_mem_map(v, memaddr, memsize, flags, memhp, acct)
|
||||
void *v;
|
||||
bus_addr_t memaddr;
|
||||
bus_size_t memsize;
|
||||
int flags;
|
||||
bus_space_handle_t *memhp;
|
||||
int acct;
|
||||
tc_mem_map(void *v, bus_addr_t memaddr, bus_size_t memsize, int flags, bus_space_handle_t *memhp, int acct)
|
||||
{
|
||||
int cacheable = flags & BUS_SPACE_MAP_CACHEABLE;
|
||||
int linear = flags & BUS_SPACE_MAP_LINEAR;
|
||||
|
@ -304,11 +289,7 @@ tc_mem_map(v, memaddr, memsize, flags, memhp, acct)
|
|||
|
||||
/* ARGSUSED */
|
||||
void
|
||||
tc_mem_unmap(v, memh, memsize, acct)
|
||||
void *v;
|
||||
bus_space_handle_t memh;
|
||||
bus_size_t memsize;
|
||||
int acct;
|
||||
tc_mem_unmap(void *v, bus_space_handle_t memh, bus_size_t memsize, int acct)
|
||||
{
|
||||
|
||||
/* XXX XX XXX nothing to do. */
|
||||
|
@ -347,10 +328,7 @@ tc_mem_alloc(v, rstart, rend, size, align, boundary, flags, addrp, bshp)
|
|||
}
|
||||
|
||||
void
|
||||
tc_mem_free(v, bsh, size)
|
||||
void *v;
|
||||
bus_space_handle_t bsh;
|
||||
bus_size_t size;
|
||||
tc_mem_free(void *v, bus_space_handle_t bsh, bus_size_t size)
|
||||
{
|
||||
|
||||
/* XXX XXX XXX XXX XXX XXX */
|
||||
|
@ -358,9 +336,7 @@ tc_mem_free(v, bsh, size)
|
|||
}
|
||||
|
||||
void *
|
||||
tc_mem_vaddr(v, bsh)
|
||||
void *v;
|
||||
bus_space_handle_t bsh;
|
||||
tc_mem_vaddr(void *v, bus_space_handle_t bsh)
|
||||
{
|
||||
#ifdef DIAGNOSTIC
|
||||
if ((bsh & TC_SPACE_SPARSE) != 0) {
|
||||
|
@ -375,12 +351,7 @@ tc_mem_vaddr(v, bsh)
|
|||
}
|
||||
|
||||
paddr_t
|
||||
tc_mem_mmap(v, addr, off, prot, flags)
|
||||
void *v;
|
||||
bus_addr_t addr;
|
||||
off_t off;
|
||||
int prot;
|
||||
int flags;
|
||||
tc_mem_mmap(void *v, bus_addr_t addr, off_t off, int prot, int flags)
|
||||
{
|
||||
int linear = flags & BUS_SPACE_MAP_LINEAR;
|
||||
bus_addr_t rv;
|
||||
|
@ -408,10 +379,7 @@ tc_mem_barrier(v, h, o, l, f)
|
|||
}
|
||||
|
||||
inline u_int8_t
|
||||
tc_mem_read_1(v, memh, off)
|
||||
void *v;
|
||||
bus_space_handle_t memh;
|
||||
bus_size_t off;
|
||||
tc_mem_read_1(void *v, bus_space_handle_t memh, bus_size_t off)
|
||||
{
|
||||
volatile u_int8_t *p;
|
||||
|
||||
|
@ -425,10 +393,7 @@ tc_mem_read_1(v, memh, off)
|
|||
}
|
||||
|
||||
inline u_int16_t
|
||||
tc_mem_read_2(v, memh, off)
|
||||
void *v;
|
||||
bus_space_handle_t memh;
|
||||
bus_size_t off;
|
||||
tc_mem_read_2(void *v, bus_space_handle_t memh, bus_size_t off)
|
||||
{
|
||||
volatile u_int16_t *p;
|
||||
|
||||
|
@ -442,10 +407,7 @@ tc_mem_read_2(v, memh, off)
|
|||
}
|
||||
|
||||
inline u_int32_t
|
||||
tc_mem_read_4(v, memh, off)
|
||||
void *v;
|
||||
bus_space_handle_t memh;
|
||||
bus_size_t off;
|
||||
tc_mem_read_4(void *v, bus_space_handle_t memh, bus_size_t off)
|
||||
{
|
||||
volatile u_int32_t *p;
|
||||
|
||||
|
@ -460,10 +422,7 @@ tc_mem_read_4(v, memh, off)
|
|||
}
|
||||
|
||||
inline u_int64_t
|
||||
tc_mem_read_8(v, memh, off)
|
||||
void *v;
|
||||
bus_space_handle_t memh;
|
||||
bus_size_t off;
|
||||
tc_mem_read_8(void *v, bus_space_handle_t memh, bus_size_t off)
|
||||
{
|
||||
volatile u_int64_t *p;
|
||||
|
||||
|
@ -515,11 +474,7 @@ tc_mem_read_region_N(4,u_int32_t)
|
|||
tc_mem_read_region_N(8,u_int64_t)
|
||||
|
||||
inline void
|
||||
tc_mem_write_1(v, memh, off, val)
|
||||
void *v;
|
||||
bus_space_handle_t memh;
|
||||
bus_size_t off;
|
||||
u_int8_t val;
|
||||
tc_mem_write_1(void *v, bus_space_handle_t memh, bus_size_t off, u_int8_t val)
|
||||
{
|
||||
|
||||
if ((memh & TC_SPACE_SPARSE) != 0) {
|
||||
|
@ -545,11 +500,7 @@ tc_mem_write_1(v, memh, off, val)
|
|||
}
|
||||
|
||||
inline void
|
||||
tc_mem_write_2(v, memh, off, val)
|
||||
void *v;
|
||||
bus_space_handle_t memh;
|
||||
bus_size_t off;
|
||||
u_int16_t val;
|
||||
tc_mem_write_2(void *v, bus_space_handle_t memh, bus_size_t off, u_int16_t val)
|
||||
{
|
||||
|
||||
if ((memh & TC_SPACE_SPARSE) != 0) {
|
||||
|
@ -575,11 +526,7 @@ tc_mem_write_2(v, memh, off, val)
|
|||
}
|
||||
|
||||
inline void
|
||||
tc_mem_write_4(v, memh, off, val)
|
||||
void *v;
|
||||
bus_space_handle_t memh;
|
||||
bus_size_t off;
|
||||
u_int32_t val;
|
||||
tc_mem_write_4(void *v, bus_space_handle_t memh, bus_size_t off, u_int32_t val)
|
||||
{
|
||||
volatile u_int32_t *p;
|
||||
|
||||
|
@ -593,11 +540,7 @@ tc_mem_write_4(v, memh, off, val)
|
|||
}
|
||||
|
||||
inline void
|
||||
tc_mem_write_8(v, memh, off, val)
|
||||
void *v;
|
||||
bus_space_handle_t memh;
|
||||
bus_size_t off;
|
||||
u_int64_t val;
|
||||
tc_mem_write_8(void *v, bus_space_handle_t memh, bus_size_t off, u_int64_t val)
|
||||
{
|
||||
volatile u_int64_t *p;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tc_dma_3000_300.c,v 1.4 2008/04/28 20:23:12 martin Exp $ */
|
||||
/* $NetBSD: tc_dma_3000_300.c,v 1.5 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: tc_dma_3000_300.c,v 1.4 2008/04/28 20:23:12 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tc_dma_3000_300.c,v 1.5 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
|
@ -44,8 +44,7 @@ __KERNEL_RCSID(0, "$NetBSD: tc_dma_3000_300.c,v 1.4 2008/04/28 20:23:12 martin E
|
|||
* Return the DMA tag for the given slot.
|
||||
*/
|
||||
bus_dma_tag_t
|
||||
tc_dma_get_tag_3000_300(slot)
|
||||
int slot;
|
||||
tc_dma_get_tag_3000_300(int slot)
|
||||
{
|
||||
extern struct alpha_bus_dma_tag tc_dmat_direct;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tc_dma_3000_500.c,v 1.14 2008/04/28 20:23:12 martin Exp $ */
|
||||
/* $NetBSD: tc_dma_3000_500.c,v 1.15 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: tc_dma_3000_500.c,v 1.14 2008/04/28 20:23:12 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tc_dma_3000_500.c,v 1.15 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -80,8 +80,7 @@ struct tc_dma_slot_info {
|
|||
struct tc_dma_slot_info *tc_dma_slot_info;
|
||||
|
||||
void
|
||||
tc_dma_init_3000_500(nslots)
|
||||
int nslots;
|
||||
tc_dma_init_3000_500(int nslots)
|
||||
{
|
||||
extern struct alpha_bus_dma_tag tc_dmat_direct;
|
||||
size_t sisize;
|
||||
|
@ -104,8 +103,7 @@ tc_dma_init_3000_500(nslots)
|
|||
* Return the DMA tag for the given slot.
|
||||
*/
|
||||
bus_dma_tag_t
|
||||
tc_dma_get_tag_3000_500(slot)
|
||||
int slot;
|
||||
tc_dma_get_tag_3000_500(int slot)
|
||||
{
|
||||
|
||||
return (&tc_dma_slot_info[slot].tdsi_dmat);
|
||||
|
@ -144,9 +142,7 @@ tc_bus_dmamap_create_sgmap(t, size, nsegments, maxsegsz, boundary,
|
|||
* Destroy a TurboChannel SGMAP-mapped DMA map.
|
||||
*/
|
||||
void
|
||||
tc_bus_dmamap_destroy_sgmap(t, map)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
tc_bus_dmamap_destroy_sgmap(bus_dma_tag_t t, bus_dmamap_t map)
|
||||
{
|
||||
|
||||
KASSERT(map->dm_mapsize == 0);
|
||||
|
@ -158,13 +154,7 @@ tc_bus_dmamap_destroy_sgmap(t, map)
|
|||
* Load a TurboChannel SGMAP-mapped DMA map with a linear buffer.
|
||||
*/
|
||||
int
|
||||
tc_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
void *buf;
|
||||
bus_size_t buflen;
|
||||
struct proc *p;
|
||||
int flags;
|
||||
tc_bus_dmamap_load_sgmap(bus_dma_tag_t t, bus_dmamap_t map, void *buf, bus_size_t buflen, struct proc *p, int flags)
|
||||
{
|
||||
struct tc_dma_slot_info *tdsi = t->_cookie;
|
||||
|
||||
|
@ -176,11 +166,7 @@ tc_bus_dmamap_load_sgmap(t, map, buf, buflen, p, flags)
|
|||
* Load a TurboChannel SGMAP-mapped DMA map with an mbuf chain.
|
||||
*/
|
||||
int
|
||||
tc_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct mbuf *m;
|
||||
int flags;
|
||||
tc_bus_dmamap_load_mbuf_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct mbuf *m, int flags)
|
||||
{
|
||||
struct tc_dma_slot_info *tdsi = t->_cookie;
|
||||
|
||||
|
@ -191,11 +177,7 @@ tc_bus_dmamap_load_mbuf_sgmap(t, map, m, flags)
|
|||
* Load a TurboChannel SGMAP-mapped DMA map with a uio.
|
||||
*/
|
||||
int
|
||||
tc_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
struct uio *uio;
|
||||
int flags;
|
||||
tc_bus_dmamap_load_uio_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio, int flags)
|
||||
{
|
||||
struct tc_dma_slot_info *tdsi = t->_cookie;
|
||||
|
||||
|
@ -206,13 +188,7 @@ tc_bus_dmamap_load_uio_sgmap(t, map, uio, flags)
|
|||
* Load a TurboChannel SGMAP-mapped DMA map with raw memory.
|
||||
*/
|
||||
int
|
||||
tc_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
bus_size_t size;
|
||||
int flags;
|
||||
tc_bus_dmamap_load_raw_sgmap(bus_dma_tag_t t, bus_dmamap_t map, bus_dma_segment_t *segs, int nsegs, bus_size_t size, int flags)
|
||||
{
|
||||
struct tc_dma_slot_info *tdsi = t->_cookie;
|
||||
|
||||
|
@ -224,9 +200,7 @@ tc_bus_dmamap_load_raw_sgmap(t, map, segs, nsegs, size, flags)
|
|||
* Unload a TurboChannel SGMAP-mapped DMA map.
|
||||
*/
|
||||
void
|
||||
tc_bus_dmamap_unload_sgmap(t, map)
|
||||
bus_dma_tag_t t;
|
||||
bus_dmamap_t map;
|
||||
tc_bus_dmamap_unload_sgmap(bus_dma_tag_t t, bus_dmamap_t map)
|
||||
{
|
||||
struct tc_dma_slot_info *tdsi = t->_cookie;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tcasic.c,v 1.41 2009/03/14 14:45:54 dsl Exp $ */
|
||||
/* $NetBSD: tcasic.c,v 1.42 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcasic.c,v 1.41 2009/03/14 14:45:54 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tcasic.c,v 1.42 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -60,10 +60,7 @@ int tcasicprint(void *, const char *);
|
|||
int tcasicfound;
|
||||
|
||||
int
|
||||
tcasicmatch(parent, cfdata, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cfdata;
|
||||
void *aux;
|
||||
tcasicmatch(struct device *parent, struct cfdata *cfdata, void *aux)
|
||||
{
|
||||
struct mainbus_attach_args *ma = aux;
|
||||
|
||||
|
@ -82,10 +79,7 @@ tcasicmatch(parent, cfdata, aux)
|
|||
}
|
||||
|
||||
void
|
||||
tcasicattach(parent, self, aux)
|
||||
struct device *parent;
|
||||
struct device *self;
|
||||
void *aux;
|
||||
tcasicattach(struct device *parent, struct device *self, void *aux)
|
||||
{
|
||||
struct tcbus_attach_args tba;
|
||||
void (*intr_setup)(void);
|
||||
|
@ -157,9 +151,7 @@ tcasicattach(parent, self, aux)
|
|||
}
|
||||
|
||||
int
|
||||
tcasicprint(aux, pnp)
|
||||
void *aux;
|
||||
const char *pnp;
|
||||
tcasicprint(void *aux, const char *pnp)
|
||||
{
|
||||
|
||||
/* only TCs can attach to tcasics; easy. */
|
||||
|
@ -226,8 +218,7 @@ struct cnboards {
|
|||
* output console.
|
||||
*/
|
||||
int
|
||||
tc_fb_cnattach(tcaddr)
|
||||
tc_addr_t tcaddr;
|
||||
tc_fb_cnattach(tc_addr_t tcaddr)
|
||||
{
|
||||
char tcname[TC_ROM_LLEN];
|
||||
int i;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: gbus.c,v 1.20 2009/03/14 14:45:54 dsl Exp $ */
|
||||
/* $NetBSD: gbus.c,v 1.21 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 by Matthew Jacob
|
||||
|
@ -37,7 +37,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: gbus.c,v 1.20 2009/03/14 14:45:54 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: gbus.c,v 1.21 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -77,9 +77,7 @@ struct gbus_attach_args gbus_children[] = {
|
|||
};
|
||||
|
||||
static int
|
||||
gbusprint(aux, pnp)
|
||||
void *aux;
|
||||
const char *pnp;
|
||||
gbusprint(void *aux, const char *pnp)
|
||||
{
|
||||
struct gbus_attach_args *ga = aux;
|
||||
|
||||
|
@ -90,10 +88,7 @@ gbusprint(aux, pnp)
|
|||
}
|
||||
|
||||
static int
|
||||
gbusmatch(parent, cf, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
void *aux;
|
||||
gbusmatch(struct device *parent, struct cfdata *cf, void *aux)
|
||||
{
|
||||
struct tlsb_dev_attach_args *ta = aux;
|
||||
|
||||
|
@ -113,10 +108,7 @@ gbusmatch(parent, cf, aux)
|
|||
}
|
||||
|
||||
static void
|
||||
gbusattach(parent, self, aux)
|
||||
struct device *parent;
|
||||
struct device *self;
|
||||
void *aux;
|
||||
gbusattach(struct device *parent, struct device *self, void *aux)
|
||||
{
|
||||
struct gbus_softc *sc = (struct gbus_softc *)self;
|
||||
struct tlsb_dev_attach_args *ta = aux;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kftxx.c,v 1.14 2009/03/14 14:45:54 dsl Exp $ */
|
||||
/* $NetBSD: kftxx.c,v 1.15 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 by Matthew Jacob
|
||||
|
@ -39,7 +39,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: kftxx.c,v 1.14 2009/03/14 14:45:54 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kftxx.c,v 1.15 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -72,9 +72,7 @@ CFATTACH_DECL(kft, sizeof(struct kft_softc),
|
|||
static int kftprint(void *, const char *);
|
||||
|
||||
static int
|
||||
kftprint(aux, pnp)
|
||||
void *aux;
|
||||
const char *pnp;
|
||||
kftprint(void *aux, const char *pnp)
|
||||
{
|
||||
register struct kft_dev_attach_args *ka = aux;
|
||||
if (pnp)
|
||||
|
@ -84,10 +82,7 @@ kftprint(aux, pnp)
|
|||
}
|
||||
|
||||
static int
|
||||
kftmatch(parent, cf, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
void *aux;
|
||||
kftmatch(struct device *parent, struct cfdata *cf, void *aux)
|
||||
{
|
||||
struct tlsb_dev_attach_args *ta = aux;
|
||||
if (TLDEV_ISIOPORT(ta->ta_dtype))
|
||||
|
@ -96,10 +91,7 @@ kftmatch(parent, cf, aux)
|
|||
}
|
||||
|
||||
static void
|
||||
kftattach(parent, self, aux)
|
||||
struct device *parent;
|
||||
struct device *self;
|
||||
void *aux;
|
||||
kftattach(struct device *parent, struct device *self, void *aux)
|
||||
{
|
||||
struct tlsb_dev_attach_args *ta = aux;
|
||||
struct kft_softc *sc = (struct kft_softc *)self;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tlsb.c,v 1.33 2009/03/14 14:45:54 dsl Exp $ */
|
||||
/* $NetBSD: tlsb.c,v 1.34 2009/03/14 15:36:00 dsl Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1997 by Matthew Jacob
|
||||
* NASA AMES Research Center.
|
||||
|
@ -39,7 +39,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: tlsb.c,v 1.33 2009/03/14 14:45:54 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tlsb.c,v 1.34 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include "opt_multiprocessor.h"
|
||||
|
||||
|
@ -85,9 +85,7 @@ static const char *tlsb_node_type_str(u_int32_t);
|
|||
int tlsb_found;
|
||||
|
||||
static int
|
||||
tlsbprint(aux, pnp)
|
||||
void *aux;
|
||||
const char *pnp;
|
||||
tlsbprint(void *aux, const char *pnp)
|
||||
{
|
||||
struct tlsb_dev_attach_args *tap = aux;
|
||||
|
||||
|
@ -102,10 +100,7 @@ tlsbprint(aux, pnp)
|
|||
}
|
||||
|
||||
static int
|
||||
tlsbmatch(parent, cf, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
void *aux;
|
||||
tlsbmatch(struct device *parent, struct cfdata *cf, void *aux)
|
||||
{
|
||||
struct mainbus_attach_args *ma = aux;
|
||||
|
||||
|
@ -125,10 +120,7 @@ tlsbmatch(parent, cf, aux)
|
|||
}
|
||||
|
||||
static void
|
||||
tlsbattach(parent, self, aux)
|
||||
struct device *parent;
|
||||
struct device *self;
|
||||
void *aux;
|
||||
tlsbattach(struct device *parent, struct device *self, void *aux)
|
||||
{
|
||||
struct tlsb_dev_attach_args ta;
|
||||
u_int32_t tldev;
|
||||
|
@ -241,8 +233,7 @@ tlsbattach(parent, self, aux)
|
|||
}
|
||||
|
||||
static const char *
|
||||
tlsb_node_type_str(dtype)
|
||||
u_int32_t dtype;
|
||||
tlsb_node_type_str(u_int32_t dtype)
|
||||
{
|
||||
static char tlsb_line[64];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tlsbmem.c,v 1.9 2009/03/14 14:45:54 dsl Exp $ */
|
||||
/* $NetBSD: tlsbmem.c,v 1.10 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 by Matthew Jacob
|
||||
|
@ -37,7 +37,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: tlsbmem.c,v 1.9 2009/03/14 14:45:54 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tlsbmem.c,v 1.10 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -63,10 +63,7 @@ CFATTACH_DECL(tlsbmem, sizeof (struct tlsbmem_softc),
|
|||
tlsbmemmatch, tlsbmemattach, NULL, NULL);
|
||||
|
||||
static int
|
||||
tlsbmemmatch(parent, cf, aux)
|
||||
struct device *parent;
|
||||
struct cfdata *cf;
|
||||
void *aux;
|
||||
tlsbmemmatch(struct device *parent, struct cfdata *cf, void *aux)
|
||||
{
|
||||
struct tlsb_dev_attach_args *ta = aux;
|
||||
if (TLDEV_ISMEM(ta->ta_dtype))
|
||||
|
@ -75,10 +72,7 @@ tlsbmemmatch(parent, cf, aux)
|
|||
}
|
||||
|
||||
static void
|
||||
tlsbmemattach(parent, self, aux)
|
||||
struct device *parent;
|
||||
struct device *self;
|
||||
void *aux;
|
||||
tlsbmemattach(struct device *parent, struct device *self, void *aux)
|
||||
{
|
||||
struct tlsb_dev_attach_args *ta = aux;
|
||||
struct tlsbmem_softc *sc = (struct tlsbmem_softc *)self;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_disasm.c,v 1.11 2008/01/01 21:24:17 yamt Exp $ */
|
||||
/* $NetBSD: db_disasm.c,v 1.12 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.11 2008/01/01 21:24:17 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.12 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#ifndef _KERNEL
|
||||
#include "stubs.h"
|
||||
|
@ -1059,11 +1059,7 @@ db_read_address(loc, rex, short_addr, regmodrm, addrp)
|
|||
}
|
||||
|
||||
void
|
||||
db_print_address(seg, rex, size, addrp)
|
||||
const char * seg;
|
||||
u_int rex;
|
||||
int size;
|
||||
struct i_addr *addrp;
|
||||
db_print_address(const char * seg, u_int rex, int size, struct i_addr *addrp)
|
||||
{
|
||||
if (addrp->is_reg) {
|
||||
int ext = ((rex & REX_b) != 0);
|
||||
|
@ -1091,13 +1087,7 @@ db_print_address(seg, rex, size, addrp)
|
|||
* and return updated location.
|
||||
*/
|
||||
db_addr_t
|
||||
db_disasm_esc(loc, inst, rex, short_addr, size, seg)
|
||||
db_addr_t loc;
|
||||
int inst;
|
||||
u_int rex;
|
||||
int short_addr;
|
||||
int size;
|
||||
const char * seg;
|
||||
db_disasm_esc(db_addr_t loc, int inst, u_int rex, int short_addr, int size, const char * seg)
|
||||
{
|
||||
int regmodrm;
|
||||
const struct finst *fp;
|
||||
|
@ -1177,9 +1167,7 @@ db_disasm_esc(loc, inst, rex, short_addr, size, seg)
|
|||
* next instruction.
|
||||
*/
|
||||
db_addr_t
|
||||
db_disasm(loc, altfmt)
|
||||
db_addr_t loc;
|
||||
bool altfmt;
|
||||
db_disasm(db_addr_t loc, bool altfmt)
|
||||
{
|
||||
int inst;
|
||||
int size;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fpu.c,v 1.30 2008/11/25 16:27:36 ad Exp $ */
|
||||
/* $NetBSD: fpu.c,v 1.31 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2008 The NetBSD Foundation, Inc. All
|
||||
|
@ -100,7 +100,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.30 2008/11/25 16:27:36 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.31 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include "opt_multiprocessor.h"
|
||||
|
||||
|
@ -180,8 +180,7 @@ fpuinit(struct cpu_info *ci)
|
|||
*/
|
||||
|
||||
void
|
||||
fputrap(frame)
|
||||
struct trapframe *frame;
|
||||
fputrap(struct trapframe *frame)
|
||||
{
|
||||
register struct lwp *l = curcpu()->ci_fpcurlwp;
|
||||
struct savefpu *sfp = &l->l_addr->u_pcb.pcb_savefpu;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: gdt.c,v 1.19 2008/05/11 15:32:20 ad Exp $ */
|
||||
/* $NetBSD: gdt.c,v 1.20 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: gdt.c,v 1.19 2008/05/11 15:32:20 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: gdt.c,v 1.20 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include "opt_multiprocessor.h"
|
||||
#include "opt_xen.h"
|
||||
|
@ -397,8 +397,7 @@ ldt_free(struct pmap *pmap)
|
|||
|
||||
#ifdef XEN
|
||||
void
|
||||
lgdt(desc)
|
||||
struct region_descriptor *desc;
|
||||
lgdt(struct region_descriptor *desc)
|
||||
{
|
||||
paddr_t frames[16];
|
||||
int i;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kgdb_machdep.c,v 1.4 2009/01/11 23:20:37 cegger Exp $ */
|
||||
/* $NetBSD: kgdb_machdep.c,v 1.5 2009/03/14 15:36:00 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -61,7 +61,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kgdb_machdep.c,v 1.4 2009/01/11 23:20:37 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kgdb_machdep.c,v 1.5 2009/03/14 15:36:00 dsl Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
|
||||
|
@ -84,9 +84,7 @@ __KERNEL_RCSID(0, "$NetBSD: kgdb_machdep.c,v 1.4 2009/01/11 23:20:37 cegger Exp
|
|||
* Determine if the memory at va..(va+len) is valid.
|
||||
*/
|
||||
int
|
||||
kgdb_acc(va, len)
|
||||
vaddr_t va;
|
||||
size_t len;
|
||||
kgdb_acc(vaddr_t va, size_t len)
|
||||
{
|
||||
vaddr_t last_va;
|
||||
pt_entry_t *pte;
|
||||
|
@ -113,8 +111,7 @@ kgdb_acc(va, len)
|
|||
* (gdb only understands unix signal numbers).
|
||||
*/
|
||||
int
|
||||
kgdb_signal(type)
|
||||
int type;
|
||||
kgdb_signal(int type)
|
||||
{
|
||||
switch (type) {
|
||||
case T_NMI:
|
||||
|
@ -159,9 +156,7 @@ kgdb_signal(type)
|
|||
* understood by gdb.
|
||||
*/
|
||||
void
|
||||
kgdb_getregs(regs, gdb_regs)
|
||||
db_regs_t *regs;
|
||||
kgdb_reg_t *gdb_regs;
|
||||
kgdb_getregs(db_regs_t *regs, kgdb_reg_t *gdb_regs)
|
||||
{
|
||||
|
||||
memcpy(gdb_regs, regs, sizeof *regs);
|
||||
|
@ -171,9 +166,7 @@ kgdb_getregs(regs, gdb_regs)
|
|||
* Reverse the above.
|
||||
*/
|
||||
void
|
||||
kgdb_setregs(regs, gdb_regs)
|
||||
db_regs_t *regs;
|
||||
kgdb_reg_t *gdb_regs;
|
||||
kgdb_setregs(db_regs_t *regs, kgdb_reg_t *gdb_regs)
|
||||
{
|
||||
|
||||
memcpy(regs, gdb_regs, sizeof *regs);
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue