kill __P in these files. (I had to look at them anyway with an eye for
adding some protos... and adding them with __P seems wrong, but mixing __P and not __P in the same file seems wrong too, so...)
This commit is contained in:
parent
9ed466ce4b
commit
47449a63d2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: eisa_machdep.h,v 1.3 1999/03/19 02:59:49 cgd Exp $ */
|
||||
/* $NetBSD: eisa_machdep.h,v 1.4 2000/06/01 00:04:50 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Carnegie-Mellon University.
|
||||
|
@ -36,15 +36,14 @@ typedef int eisa_intr_handle_t;
|
|||
struct alpha_eisa_chipset {
|
||||
void *ec_v;
|
||||
|
||||
void (*ec_attach_hook) __P((struct device *, struct device *,
|
||||
struct eisabus_attach_args *));
|
||||
int (*ec_maxslots) __P((void *));
|
||||
int (*ec_intr_map) __P((void *, u_int,
|
||||
eisa_intr_handle_t *));
|
||||
const char *(*ec_intr_string) __P((void *, eisa_intr_handle_t));
|
||||
void *(*ec_intr_establish) __P((void *, eisa_intr_handle_t,
|
||||
int, int, int (*)(void *), void *));
|
||||
void (*ec_intr_disestablish) __P((void *, void *));
|
||||
void (*ec_attach_hook)(struct device *, struct device *,
|
||||
struct eisabus_attach_args *);
|
||||
int (*ec_maxslots)(void *);
|
||||
int (*ec_intr_map)(void *, u_int, eisa_intr_handle_t *);
|
||||
const char *(*ec_intr_string)(void *, eisa_intr_handle_t);
|
||||
void *(*ec_intr_establish)(void *, eisa_intr_handle_t,
|
||||
int, int, int (*)(void *), void *);
|
||||
void (*ec_intr_disestablish)(void *, void *);
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isa_machdep.h,v 1.4 2000/02/07 22:07:27 thorpej Exp $ */
|
||||
/* $NetBSD: isa_machdep.h,v 1.5 2000/06/01 00:04:50 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Carnegie-Mellon University.
|
||||
|
@ -39,12 +39,12 @@ struct alpha_isa_chipset {
|
|||
|
||||
struct isa_dma_state ic_dmastate;
|
||||
|
||||
void (*ic_attach_hook) __P((struct device *, struct device *,
|
||||
struct isabus_attach_args *));
|
||||
void *(*ic_intr_establish) __P((void *, int, int, int,
|
||||
int (*)(void *), void *));
|
||||
void (*ic_intr_disestablish) __P((void *, void *));
|
||||
int (*ic_intr_alloc) __P((void *, int, int, int *));
|
||||
void (*ic_attach_hook)(struct device *, struct device *,
|
||||
struct isabus_attach_args *);
|
||||
void *(*ic_intr_establish)(void *, int, int, int,
|
||||
int (*)(void *), void *);
|
||||
void (*ic_intr_disestablish)(void *, void *);
|
||||
int (*ic_intr_alloc)(void *, int, int, int *);
|
||||
};
|
||||
|
||||
|
||||
|
@ -107,6 +107,6 @@ struct alpha_isa_chipset {
|
|||
* alpha-specific ISA functions.
|
||||
* NOT TO BE USED DIRECTLY BY MACHINE INDEPENDENT CODE.
|
||||
*/
|
||||
int isa_display_console __P((bus_space_tag_t, bus_space_tag_t));
|
||||
int isa_display_console(bus_space_tag_t, bus_space_tag_t);
|
||||
|
||||
void isabeep __P((int, int));
|
||||
void isabeep(int, int);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isapnp_machdep.h,v 1.4 1999/03/19 03:14:05 cgd Exp $ */
|
||||
/* $NetBSD: isapnp_machdep.h,v 1.5 2000/06/01 00:04:50 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -40,7 +40,7 @@
|
|||
/*
|
||||
* Functions provided to machine-independent ISA PnP code.
|
||||
*/
|
||||
int isapnp_map __P((struct isapnp_softc *));
|
||||
void isapnp_unmap __P((struct isapnp_softc *));
|
||||
int isapnp_map_readport __P((struct isapnp_softc *));
|
||||
void isapnp_unmap_readport __P((struct isapnp_softc *));
|
||||
int isapnp_map(struct isapnp_softc *);
|
||||
void isapnp_unmap(struct isapnp_softc *);
|
||||
int isapnp_map_readport(struct isapnp_softc *);
|
||||
void isapnp_unmap_readport(struct isapnp_softc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.h,v 1.3 1999/03/19 03:40:46 cgd Exp $ */
|
||||
/* $NetBSD: pci_machdep.h,v 1.4 2000/06/01 00:04:50 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Carnegie-Mellon University.
|
||||
|
@ -49,27 +49,27 @@ struct pci_attach_args;
|
|||
*/
|
||||
struct alpha_pci_chipset {
|
||||
void *pc_conf_v;
|
||||
void (*pc_attach_hook) __P((struct device *,
|
||||
struct device *, struct pcibus_attach_args *));
|
||||
int (*pc_bus_maxdevs) __P((void *, int));
|
||||
pcitag_t (*pc_make_tag) __P((void *, int, int, int));
|
||||
pcireg_t (*pc_conf_read) __P((void *, pcitag_t, int));
|
||||
void (*pc_conf_write) __P((void *, pcitag_t, int, pcireg_t));
|
||||
void (*pc_attach_hook)(struct device *,
|
||||
struct device *, struct pcibus_attach_args *);
|
||||
int (*pc_bus_maxdevs)(void *, int);
|
||||
pcitag_t (*pc_make_tag)(void *, int, int, int);
|
||||
pcireg_t (*pc_conf_read)(void *, pcitag_t, int);
|
||||
void (*pc_conf_write)(void *, pcitag_t, int, pcireg_t);
|
||||
|
||||
void *pc_intr_v;
|
||||
int (*pc_intr_map) __P((void *, pcitag_t, int, int,
|
||||
pci_intr_handle_t *));
|
||||
const char *(*pc_intr_string) __P((void *, pci_intr_handle_t));
|
||||
void *(*pc_intr_establish) __P((void *, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *));
|
||||
void (*pc_intr_disestablish) __P((void *, void *));
|
||||
int (*pc_intr_map)(void *, pcitag_t, int, int,
|
||||
pci_intr_handle_t *);
|
||||
const char *(*pc_intr_string)(void *, pci_intr_handle_t);
|
||||
void *(*pc_intr_establish)(void *, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *);
|
||||
void (*pc_intr_disestablish)(void *, void *);
|
||||
|
||||
/* alpha-specific */
|
||||
void (*pc_decompose_tag) __P((void *, pcitag_t, int *,
|
||||
int *, int *));
|
||||
void *(*pc_pciide_compat_intr_establish) __P((void *,
|
||||
void (*pc_decompose_tag)(void *, pcitag_t, int *,
|
||||
int *, int *);
|
||||
void *(*pc_pciide_compat_intr_establish)(void *,
|
||||
struct device *, struct pci_attach_args *, int,
|
||||
int (*)(void *), void *));
|
||||
int (*)(void *), void *);
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -98,8 +98,8 @@ struct alpha_pci_chipset {
|
|||
* alpha-specific PCI functions.
|
||||
* NOT TO BE USED DIRECTLY BY MACHINE INDEPENDENT CODE.
|
||||
*/
|
||||
void pci_display_console __P((bus_space_tag_t, bus_space_tag_t,
|
||||
pci_chipset_tag_t, int, int, int));
|
||||
void pci_display_console(bus_space_tag_t, bus_space_tag_t,
|
||||
pci_chipset_tag_t, int, int, int);
|
||||
#define alpha_pci_decompose_tag(c, t, bp, dp, fp) \
|
||||
(*(c)->pc_decompose_tag)((c)->pc_conf_v, (t), (bp), (dp), (fp))
|
||||
#define alpha_pciide_compat_intr_establish(c, d, p, ch, f, a) \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tc_machdep.h,v 1.3 1999/03/19 03:12:31 cgd Exp $ */
|
||||
/* $NetBSD: tc_machdep.h,v 1.4 2000/06/01 00:04:50 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
||||
|
@ -95,8 +95,8 @@ typedef int32_t tc_offset_t;
|
|||
* These functions are private, and may not be called by
|
||||
* machine-independent code.
|
||||
*/
|
||||
bus_space_tag_t tc_bus_mem_init __P((void *memv));
|
||||
void tc_dma_init __P((void));
|
||||
bus_space_tag_t tc_bus_mem_init(void *memv);
|
||||
void tc_dma_init(void);
|
||||
|
||||
/*
|
||||
* Address of scatter/gather SRAM on the 3000/500-series.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isa_machdep.h,v 1.2 2000/01/23 21:01:56 soda Exp $ */
|
||||
/* $NetBSD: isa_machdep.h,v 1.3 2000/06/01 00:04:52 cgd Exp $ */
|
||||
/* $OpenBSD: isa_machdep.h,v 1.5 1997/04/19 17:20:00 pefo Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -47,11 +47,11 @@ typedef struct arc_isa_bus *isa_chipset_tag_t;
|
|||
struct arc_isa_bus {
|
||||
void *ic_data;
|
||||
|
||||
void (*ic_attach_hook) __P((struct device *, struct device *,
|
||||
struct isabus_attach_args *));
|
||||
void *(*ic_intr_establish) __P((isa_chipset_tag_t, int, int, int,
|
||||
int (*)(void *), void *));
|
||||
void (*ic_intr_disestablish) __P((isa_chipset_tag_t, void *));
|
||||
void (*ic_attach_hook)(struct device *, struct device *,
|
||||
struct isabus_attach_args *);
|
||||
void *(*ic_intr_establish)(isa_chipset_tag_t, int, int, int,
|
||||
int (*)(void *), void *);
|
||||
void (*ic_intr_disestablish)(isa_chipset_tag_t, void *);
|
||||
};
|
||||
|
||||
|
||||
|
@ -65,8 +65,8 @@ struct arc_isa_bus {
|
|||
#define isa_intr_disestablish(c, h) \
|
||||
(*(c)->ic_intr_disestablish)((c)->ic_data, (h))
|
||||
|
||||
void sysbeepstop __P((void *));
|
||||
void sysbeep __P((int, int));
|
||||
void sysbeepstop(void *);
|
||||
void sysbeep(int, int);
|
||||
|
||||
|
||||
/*
|
||||
|
@ -75,7 +75,7 @@ void sysbeep __P((int, int));
|
|||
|
||||
struct intrhand {
|
||||
struct intrhand *ih_next;
|
||||
int (*ih_fun) __P((void *));
|
||||
int (*ih_fun)(void *);
|
||||
void *ih_arg;
|
||||
u_long ih_count;
|
||||
int ih_level;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isapnp_machdep.h,v 1.1 2000/01/23 21:01:57 soda Exp $ */
|
||||
/* $NetBSD: isapnp_machdep.h,v 1.2 2000/06/01 00:04:52 cgd Exp $ */
|
||||
/* NetBSD: isapnp_machdep.h,v 1.3 1998/09/05 15:28:05 christos Exp */
|
||||
|
||||
/*-
|
||||
|
@ -41,7 +41,7 @@
|
|||
/*
|
||||
* Functions provided to machine-independent ISA PnP code.
|
||||
*/
|
||||
int isapnp_map __P((struct isapnp_softc *));
|
||||
void isapnp_unmap __P((struct isapnp_softc *));
|
||||
int isapnp_map_readport __P((struct isapnp_softc *));
|
||||
void isapnp_unmap_readport __P((struct isapnp_softc *));
|
||||
int isapnp_map(struct isapnp_softc *);
|
||||
void isapnp_unmap(struct isapnp_softc *);
|
||||
int isapnp_map_readport(struct isapnp_softc *);
|
||||
void isapnp_unmap_readport(struct isapnp_softc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isa_machdep.h,v 1.6 2000/02/07 22:07:29 thorpej Exp $ */
|
||||
/* $NetBSD: isa_machdep.h,v 1.7 2000/06/01 00:04:52 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -58,11 +58,11 @@ struct isabus_attach_args; /* XXX */
|
|||
/*
|
||||
* Functions provided to machine-independent ISA code.
|
||||
*/
|
||||
void isa_attach_hook __P((struct device *, struct device *,
|
||||
struct isabus_attach_args *));
|
||||
void *isa_intr_establish __P((isa_chipset_tag_t ic, int irq, int type,
|
||||
int level, int (*ih_fun)(void *), void *ih_arg));
|
||||
void isa_intr_disestablish __P((isa_chipset_tag_t ic, void *handler));
|
||||
void isa_attach_hook(struct device *, struct device *,
|
||||
struct isabus_attach_args *);
|
||||
void *isa_intr_establish(isa_chipset_tag_t ic, int irq, int type,
|
||||
int level, int (*ih_fun)(void *), void *ih_arg);
|
||||
void isa_intr_disestablish(isa_chipset_tag_t ic, void *handler);
|
||||
|
||||
#define isa_dmainit(ic, bst, dmat, d) \
|
||||
_isa_dmainit(&(ic)->ic_dmastate, (bst), (dmat), (d))
|
||||
|
@ -165,17 +165,17 @@ extern struct arm32_isa_chipset isa_chipset_tag;
|
|||
#define VGA_BUF 0xA0000
|
||||
#define VGA_BUF_LEN (0xBFFFF - 0xA0000)
|
||||
|
||||
void isa_init __P((vm_offset_t, vm_offset_t));
|
||||
void isa_io_init __P((vm_offset_t, vm_offset_t));
|
||||
void isa_dma_init __P((void));
|
||||
vm_offset_t isa_io_data_vaddr __P((void));
|
||||
vm_offset_t isa_mem_data_vaddr __P((void));
|
||||
int isa_intr_alloc __P((isa_chipset_tag_t ic, int mask, int type, int *irq));
|
||||
void isa_init(vm_offset_t, vm_offset_t);
|
||||
void isa_io_init(vm_offset_t, vm_offset_t);
|
||||
void isa_dma_init(void);
|
||||
vm_offset_t isa_io_data_vaddr(void);
|
||||
vm_offset_t isa_mem_data_vaddr(void);
|
||||
int isa_intr_alloc(isa_chipset_tag_t ic, int mask, int type, int *irq);
|
||||
|
||||
/*
|
||||
* Miscellanous functions.
|
||||
*/
|
||||
void sysbeep __P((int, int)); /* beep with the system speaker */
|
||||
void isa_fillw __P((u_short val, void *addr, size_t len));
|
||||
void sysbeep(int, int); /* beep with the system speaker */
|
||||
void isa_fillw(u_short val, void *addr, size_t len);
|
||||
|
||||
#endif /* _ARM32_ISA_MACHDEP_H_ XXX */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isapnp_machdep.h,v 1.4 1999/03/19 03:14:16 cgd Exp $ */
|
||||
/* $NetBSD: isapnp_machdep.h,v 1.5 2000/06/01 00:04:52 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -40,7 +40,7 @@
|
|||
/*
|
||||
* Functions provided to machine-independent ISA PnP code.
|
||||
*/
|
||||
int isapnp_map __P((struct isapnp_softc *));
|
||||
void isapnp_unmap __P((struct isapnp_softc *));
|
||||
int isapnp_map_readport __P((struct isapnp_softc *));
|
||||
void isapnp_unmap_readport __P((struct isapnp_softc *));
|
||||
int isapnp_map(struct isapnp_softc *);
|
||||
void isapnp_unmap(struct isapnp_softc *);
|
||||
int isapnp_map_readport(struct isapnp_softc *);
|
||||
void isapnp_unmap_readport(struct isapnp_softc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ofisa_machdep.h,v 1.6 1999/03/19 03:29:50 cgd Exp $ */
|
||||
/* $NetBSD: ofisa_machdep.h,v 1.7 2000/06/01 00:04:52 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1998
|
||||
|
@ -33,8 +33,8 @@
|
|||
* even if advised of the possibility of such damage.
|
||||
*/
|
||||
|
||||
int ofisa_get_isabus_data __P((int, struct isabus_attach_args *));
|
||||
int ofisa_ignore_child __P((int pphandle, int cphandle));
|
||||
int ofisa_get_isabus_data(int, struct isabus_attach_args *);
|
||||
int ofisa_ignore_child(int pphandle, int cphandle);
|
||||
|
||||
#if defined(_KERNEL) && !defined(_LKM)
|
||||
#include "opt_compat_old_ofw.h"
|
||||
|
@ -43,44 +43,44 @@ int ofisa_ignore_child __P((int pphandle, int cphandle));
|
|||
#ifdef COMPAT_OLD_OFW
|
||||
|
||||
#define _OFISA_MD_MATCH
|
||||
int ofisa_md_match __P((struct device *, struct cfdata *, void *));
|
||||
int ofisa_md_match(struct device *, struct cfdata *, void *);
|
||||
|
||||
#define _COM_OFISA_MD_MATCH
|
||||
#define _COM_OFISA_MD_INTR_FIXUP
|
||||
int com_ofisa_md_match __P((struct device *, struct cfdata *, void *));
|
||||
int com_ofisa_md_intr_fixup __P((struct device *, struct device*, void *,
|
||||
struct ofisa_intr_desc *, int, int));
|
||||
int com_ofisa_md_match(struct device *, struct cfdata *, void *);
|
||||
int com_ofisa_md_intr_fixup(struct device *, struct device*, void *,
|
||||
struct ofisa_intr_desc *, int, int);
|
||||
|
||||
#define _CS_OFISA_MD_MATCH
|
||||
#define _CS_OFISA_MD_REG_FIXUP
|
||||
#define _CS_OFISA_MD_INTR_FIXUP
|
||||
#define _CS_OFISA_MD_DMA_FIXUP
|
||||
#define _CS_OFISA_MD_MEDIA_FIXUP
|
||||
int cs_ofisa_md_match __P((struct device *, struct cfdata *, void *));
|
||||
int cs_ofisa_md_reg_fixup __P((struct device *, struct device *, void *,
|
||||
struct ofisa_reg_desc *, int, int));
|
||||
int cs_ofisa_md_intr_fixup __P((struct device *, struct device *, void *,
|
||||
struct ofisa_intr_desc *, int, int));
|
||||
int cs_ofisa_md_dma_fixup __P((struct device *, struct device *, void *,
|
||||
struct ofisa_dma_desc *, int, int));
|
||||
int *cs_ofisa_md_media_fixup __P((struct device *, struct device *, void *,
|
||||
int *, int *, int *));
|
||||
int cs_ofisa_md_match(struct device *, struct cfdata *, void *);
|
||||
int cs_ofisa_md_reg_fixup(struct device *, struct device *, void *,
|
||||
struct ofisa_reg_desc *, int, int);
|
||||
int cs_ofisa_md_intr_fixup(struct device *, struct device *, void *,
|
||||
struct ofisa_intr_desc *, int, int);
|
||||
int cs_ofisa_md_dma_fixup(struct device *, struct device *, void *,
|
||||
struct ofisa_dma_desc *, int, int);
|
||||
int *cs_ofisa_md_media_fixup(struct device *, struct device *, void *,
|
||||
int *, int *, int *);
|
||||
|
||||
#define _LPT_OFISA_MD_MATCH
|
||||
#define _LPT_OFISA_MD_INTR_FIXUP
|
||||
int lpt_ofisa_md_match __P((struct device *, struct cfdata *, void *));
|
||||
int lpt_ofisa_md_intr_fixup __P((struct device *, struct device*, void *,
|
||||
struct ofisa_intr_desc *, int, int));
|
||||
int lpt_ofisa_md_match(struct device *, struct cfdata *, void *);
|
||||
int lpt_ofisa_md_intr_fixup(struct device *, struct device*, void *,
|
||||
struct ofisa_intr_desc *, int, int);
|
||||
|
||||
#define _WDC_OFISA_MD_MATCH
|
||||
#define _WDC_OFISA_MD_INTR_FIXUP
|
||||
int wdc_ofisa_md_match __P((struct device *, struct cfdata *, void *));
|
||||
int wdc_ofisa_md_intr_fixup __P((struct device *, struct device*, void *,
|
||||
struct ofisa_intr_desc *, int, int));
|
||||
int wdc_ofisa_md_match(struct device *, struct cfdata *, void *);
|
||||
int wdc_ofisa_md_intr_fixup(struct device *, struct device*, void *,
|
||||
struct ofisa_intr_desc *, int, int);
|
||||
|
||||
#endif /* COMPAT_OLD_OFW */
|
||||
|
||||
/* The following aren't dependent on old OpenFirmware. */
|
||||
#define _CS_OFISA_MD_CFGFLAGS_FIXUP
|
||||
int cs_ofisa_md_cfgflags_fixup __P((struct device *, struct device *,
|
||||
void *));
|
||||
int cs_ofisa_md_cfgflags_fixup(struct device *, struct device *,
|
||||
void *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.h,v 1.2 1999/03/19 03:34:22 cgd Exp $ */
|
||||
/* $NetBSD: pci_machdep.h,v 1.3 2000/06/01 00:04:52 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Modified for arm32 by Mark Brinicombe
|
||||
|
@ -53,22 +53,22 @@ struct pci_attach_args;
|
|||
*/
|
||||
struct arm32_pci_chipset {
|
||||
void *pc_conf_v;
|
||||
void (*pc_attach_hook) __P((struct device *,
|
||||
struct device *, struct pcibus_attach_args *));
|
||||
int (*pc_bus_maxdevs) __P((void *, int));
|
||||
pcitag_t (*pc_make_tag) __P((void *, int, int, int));
|
||||
void (*pc_decompose_tag) __P((void *, pcitag_t, int *,
|
||||
int *, int *));
|
||||
pcireg_t (*pc_conf_read) __P((void *, pcitag_t, int));
|
||||
void (*pc_conf_write) __P((void *, pcitag_t, int, pcireg_t));
|
||||
void (*pc_attach_hook)(struct device *,
|
||||
struct device *, struct pcibus_attach_args *);
|
||||
int (*pc_bus_maxdevs)(void *, int);
|
||||
pcitag_t (*pc_make_tag)(void *, int, int, int);
|
||||
void (*pc_decompose_tag)(void *, pcitag_t, int *,
|
||||
int *, int *);
|
||||
pcireg_t (*pc_conf_read)(void *, pcitag_t, int);
|
||||
void (*pc_conf_write)(void *, pcitag_t, int, pcireg_t);
|
||||
|
||||
void *pc_intr_v;
|
||||
int (*pc_intr_map) __P((void *, pcitag_t, int, int,
|
||||
pci_intr_handle_t *));
|
||||
const char *(*pc_intr_string) __P((void *, pci_intr_handle_t));
|
||||
void *(*pc_intr_establish) __P((void *, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *));
|
||||
void (*pc_intr_disestablish) __P((void *, void *));
|
||||
int (*pc_intr_map)(void *, pcitag_t, int, int,
|
||||
pci_intr_handle_t *);
|
||||
const char *(*pc_intr_string)(void *, pci_intr_handle_t);
|
||||
void *(*pc_intr_establish)(void *, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *);
|
||||
void (*pc_intr_disestablish)(void *, void *);
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isa_machdep.h,v 1.7 2000/02/07 22:07:29 thorpej Exp $ */
|
||||
/* $NetBSD: isa_machdep.h,v 1.8 2000/06/01 00:04:53 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -85,7 +85,7 @@ typedef struct atari_isa_chipset *isa_chipset_tag_t;
|
|||
typedef struct {
|
||||
int slot; /* 1/2, determines interrupt line */
|
||||
int ipl; /* ipl requested */
|
||||
int (*ifunc) __P((void *)); /* function to call */
|
||||
int (*ifunc)(void *); /* function to call */
|
||||
void *iarg; /* argument for 'ifunc' */
|
||||
struct intrhand *ihand; /* save this for disestablishing */
|
||||
} isa_intr_info_t;
|
||||
|
@ -93,12 +93,12 @@ typedef struct {
|
|||
/*
|
||||
* Functions provided to machine-independent ISA code.
|
||||
*/
|
||||
void isa_attach_hook __P((struct device *, struct device *,
|
||||
struct isabus_attach_args *));
|
||||
int isa_intr_alloc __P((isa_chipset_tag_t, int, int, int *));
|
||||
void *isa_intr_establish __P((isa_chipset_tag_t ic, int irq, int type,
|
||||
int level, int (*)(void *), void *ih_arg));
|
||||
void isa_intr_disestablish __P((isa_chipset_tag_t ic, void *handler));
|
||||
void isa_attach_hook(struct device *, struct device *,
|
||||
struct isabus_attach_args *);
|
||||
int isa_intr_alloc(isa_chipset_tag_t, int, int, int *);
|
||||
void *isa_intr_establish(isa_chipset_tag_t ic, int irq, int type,
|
||||
int level, int (*)(void *), void *ih_arg);
|
||||
void isa_intr_disestablish(isa_chipset_tag_t ic, void *handler);
|
||||
|
||||
#define isa_dmainit(ic, bst, dmat, d) \
|
||||
_isa_dmainit(&(ic)->ic_dmastate, (bst), (dmat), (d))
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isapnp_machdep.h,v 1.3 1999/03/19 03:18:00 cgd Exp $ */
|
||||
/* $NetBSD: isapnp_machdep.h,v 1.4 2000/06/01 00:04:53 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -40,7 +40,7 @@
|
|||
/*
|
||||
* Functions provided to machine-independent ISA PnP code.
|
||||
*/
|
||||
int isapnp_map __P((struct isapnp_softc *));
|
||||
void isapnp_unmap __P((struct isapnp_softc *));
|
||||
int isapnp_map_readport __P((struct isapnp_softc *));
|
||||
void isapnp_unmap_readport __P((struct isapnp_softc *));
|
||||
int isapnp_map(struct isapnp_softc *);
|
||||
void isapnp_unmap(struct isapnp_softc *);
|
||||
int isapnp_map_readport(struct isapnp_softc *);
|
||||
void isapnp_unmap_readport(struct isapnp_softc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.h,v 1.4 1999/03/19 03:35:59 cgd Exp $ */
|
||||
/* $NetBSD: pci_machdep.h,v 1.5 2000/06/01 00:04:53 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Leo Weppelman. All rights reserved.
|
||||
|
@ -46,7 +46,7 @@ typedef int pci_intr_handle_t;
|
|||
typedef struct {
|
||||
int ipl; /* ipl requested */
|
||||
int imask; /* bitmask for MFP-register */
|
||||
int (*ifunc) __P((void *)); /* function to call */
|
||||
int (*ifunc)(void *); /* function to call */
|
||||
void *iarg; /* argument for 'ifunc' */
|
||||
struct intrhand *ihand; /* save this for disestablishing */
|
||||
} pci_intr_info_t;
|
||||
|
@ -54,18 +54,17 @@ typedef struct {
|
|||
/*
|
||||
* Functions provided to machine-independent PCI code.
|
||||
*/
|
||||
void pci_attach_hook __P((struct device *, struct device *,
|
||||
struct pcibus_attach_args *));
|
||||
int pci_bus_maxdevs __P((pci_chipset_tag_t, int));
|
||||
pcitag_t pci_make_tag __P((pci_chipset_tag_t, int, int, int));
|
||||
pcireg_t pci_conf_read __P((pci_chipset_tag_t, pcitag_t, int));
|
||||
void pci_conf_write __P((pci_chipset_tag_t, pcitag_t, int,
|
||||
pcireg_t));
|
||||
int pci_intr_map __P((pci_chipset_tag_t, pcitag_t, int, int,
|
||||
pci_intr_handle_t *));
|
||||
const char *pci_intr_string __P((pci_chipset_tag_t, pci_intr_handle_t));
|
||||
void *pci_intr_establish __P((pci_chipset_tag_t, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *));
|
||||
void pci_intr_disestablish __P((pci_chipset_tag_t, void *));
|
||||
void pci_attach_hook(struct device *, struct device *,
|
||||
struct pcibus_attach_args *);
|
||||
int pci_bus_maxdevs(pci_chipset_tag_t, int);
|
||||
pcitag_t pci_make_tag(pci_chipset_tag_t, int, int, int);
|
||||
pcireg_t pci_conf_read(pci_chipset_tag_t, pcitag_t, int);
|
||||
void pci_conf_write(pci_chipset_tag_t, pcitag_t, int, pcireg_t);
|
||||
int pci_intr_map(pci_chipset_tag_t, pcitag_t, int, int,
|
||||
pci_intr_handle_t *);
|
||||
const char *pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t);
|
||||
void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *);
|
||||
void pci_intr_disestablish(pci_chipset_tag_t, void *);
|
||||
|
||||
#endif /* _ATARI_PCI_MACHDEP_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isa_machdep.h,v 1.9 2000/02/07 22:07:29 thorpej Exp $ */
|
||||
/* $NetBSD: isa_machdep.h,v 1.10 2000/06/01 00:04:53 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -109,11 +109,11 @@ struct isabus_attach_args; /* XXX */
|
|||
/*
|
||||
* Functions provided to machine-independent ISA code.
|
||||
*/
|
||||
void isa_attach_hook __P((struct device *, struct device *,
|
||||
struct isabus_attach_args *));
|
||||
void *isa_intr_establish __P((isa_chipset_tag_t ic, int irq, int type,
|
||||
int level, int (*ih_fun)(void *), void *ih_arg));
|
||||
void isa_intr_disestablish __P((isa_chipset_tag_t ic, void *handler));
|
||||
void isa_attach_hook(struct device *, struct device *,
|
||||
struct isabus_attach_args *);
|
||||
void *isa_intr_establish(isa_chipset_tag_t ic, int irq, int type,
|
||||
int level, int (*ih_fun)(void *), void *ih_arg);
|
||||
void isa_intr_disestablish(isa_chipset_tag_t ic, void *handler);
|
||||
|
||||
#define isa_dmainit(ic, bst, dmat, d) \
|
||||
_isa_dmainit(&(ic)->ic_dmastate, (bst), (dmat), (d))
|
||||
|
@ -239,6 +239,6 @@ extern paddr_t isaphysmem;
|
|||
/*
|
||||
* Miscellanous functions.
|
||||
*/
|
||||
void sysbeep __P((int, int)); /* beep with the system speaker */
|
||||
void sysbeep(int, int); /* beep with the system speaker */
|
||||
|
||||
#endif /* _BEBOX_ISA_MACHDEP_H_ XXX */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isapnp_machdep.h,v 1.4 1999/03/19 03:18:33 cgd Exp $ */
|
||||
/* $NetBSD: isapnp_machdep.h,v 1.5 2000/06/01 00:04:53 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -40,7 +40,7 @@
|
|||
/*
|
||||
* Functions provided to machine-independent ISA PnP code.
|
||||
*/
|
||||
int isapnp_map __P((struct isapnp_softc *));
|
||||
void isapnp_unmap __P((struct isapnp_softc *));
|
||||
int isapnp_map_readport __P((struct isapnp_softc *));
|
||||
void isapnp_unmap_readport __P((struct isapnp_softc *));
|
||||
int isapnp_map(struct isapnp_softc *);
|
||||
void isapnp_unmap(struct isapnp_softc *);
|
||||
int isapnp_map_readport(struct isapnp_softc *);
|
||||
void isapnp_unmap_readport(struct isapnp_softc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.h,v 1.4 1999/03/19 03:36:07 cgd Exp $ */
|
||||
/* $NetBSD: pci_machdep.h,v 1.5 2000/06/01 00:04:53 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -54,18 +54,18 @@ typedef int pci_intr_handle_t;
|
|||
/*
|
||||
* Functions provided to machine-independent PCI code.
|
||||
*/
|
||||
void pci_attach_hook __P((struct device *, struct device *,
|
||||
struct pcibus_attach_args *));
|
||||
int pci_bus_maxdevs __P((pci_chipset_tag_t, int));
|
||||
pcitag_t pci_make_tag __P((pci_chipset_tag_t, int, int, int));
|
||||
void pci_decompose_tag __P((pci_chipset_tag_t, pcitag_t,
|
||||
int *, int *, int *));
|
||||
pcireg_t pci_conf_read __P((pci_chipset_tag_t, pcitag_t, int));
|
||||
void pci_conf_write __P((pci_chipset_tag_t, pcitag_t, int,
|
||||
pcireg_t));
|
||||
int pci_intr_map __P((pci_chipset_tag_t, pcitag_t, int, int,
|
||||
pci_intr_handle_t *));
|
||||
const char *pci_intr_string __P((pci_chipset_tag_t, pci_intr_handle_t));
|
||||
void *pci_intr_establish __P((pci_chipset_tag_t, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *));
|
||||
void pci_intr_disestablish __P((pci_chipset_tag_t, void *));
|
||||
void pci_attach_hook(struct device *, struct device *,
|
||||
struct pcibus_attach_args *);
|
||||
int pci_bus_maxdevs(pci_chipset_tag_t, int);
|
||||
pcitag_t pci_make_tag(pci_chipset_tag_t, int, int, int);
|
||||
void pci_decompose_tag(pci_chipset_tag_t, pcitag_t,
|
||||
int *, int *, int *);
|
||||
pcireg_t pci_conf_read(pci_chipset_tag_t, pcitag_t, int);
|
||||
void pci_conf_write(pci_chipset_tag_t, pcitag_t, int,
|
||||
pcireg_t);
|
||||
int pci_intr_map(pci_chipset_tag_t, pcitag_t, int, int,
|
||||
pci_intr_handle_t *);
|
||||
const char *pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t);
|
||||
void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *);
|
||||
void pci_intr_disestablish(pci_chipset_tag_t, void *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isa_machdep.h,v 1.2 2000/03/05 04:34:06 takemura Exp $ */
|
||||
/* $NetBSD: isa_machdep.h,v 1.3 2000/06/01 00:04:54 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999, by UCHIYAMA Yasushi
|
||||
|
@ -41,10 +41,10 @@ typedef struct hpcmips_isa_chipset *isa_chipset_tag_t;
|
|||
/*
|
||||
* Functions provided to machine-independent ISA code.
|
||||
*/
|
||||
void isa_attach_hook __P((struct device*, struct device*, struct isabus_attach_args*));
|
||||
int isa_intr_alloc __P((isa_chipset_tag_t, int, int, int*));
|
||||
void *isa_intr_establish __P((isa_chipset_tag_t, int, int, int, int (*)(void *), void*));
|
||||
void isa_intr_disestablish __P((isa_chipset_tag_t, void*));
|
||||
void isa_attach_hook(struct device*, struct device*, struct isabus_attach_args*);
|
||||
int isa_intr_alloc(isa_chipset_tag_t, int, int, int*);
|
||||
void *isa_intr_establish(isa_chipset_tag_t, int, int, int, int (*)(void *), void*);
|
||||
void isa_intr_disestablish(isa_chipset_tag_t, void*);
|
||||
|
||||
#define isa_dmainit(ic, bst, dmat, d) \
|
||||
_isa_dmainit(&(ic)->ic_dmastate, (bst), (dmat), (d))
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isapnp_machdep.h,v 1.1.1.1 1999/09/16 12:23:23 takemura Exp $ */
|
||||
/* $NetBSD: isapnp_machdep.h,v 1.2 2000/06/01 00:04:54 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -40,7 +40,7 @@
|
|||
/*
|
||||
* Functions provided to machine-independent ISA PnP code.
|
||||
*/
|
||||
int isapnp_map __P((struct isapnp_softc *));
|
||||
void isapnp_unmap __P((struct isapnp_softc *));
|
||||
int isapnp_map_readport __P((struct isapnp_softc *));
|
||||
void isapnp_unmap_readport __P((struct isapnp_softc *));
|
||||
int isapnp_map(struct isapnp_softc *);
|
||||
void isapnp_unmap(struct isapnp_softc *);
|
||||
int isapnp_map_readport(struct isapnp_softc *);
|
||||
void isapnp_unmap_readport(struct isapnp_softc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: eisa_machdep.h,v 1.5 1999/03/19 02:56:59 cgd Exp $ */
|
||||
/* $NetBSD: eisa_machdep.h,v 1.6 2000/06/01 00:04:51 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -53,16 +53,16 @@ typedef int eisa_intr_handle_t;
|
|||
/*
|
||||
* Functions provided to machine-independent EISA code.
|
||||
*/
|
||||
void eisa_attach_hook __P((struct device *, struct device *,
|
||||
struct eisabus_attach_args *));
|
||||
int eisa_maxslots __P((eisa_chipset_tag_t));
|
||||
int eisa_intr_map __P((eisa_chipset_tag_t, u_int,
|
||||
eisa_intr_handle_t *));
|
||||
const char *eisa_intr_string __P((eisa_chipset_tag_t, eisa_intr_handle_t));
|
||||
void *eisa_intr_establish __P((eisa_chipset_tag_t,
|
||||
eisa_intr_handle_t, int, int, int (*)(void *), void *));
|
||||
void eisa_intr_disestablish __P((eisa_chipset_tag_t, void *));
|
||||
int eisa_mem_alloc __P((bus_space_tag_t, bus_size_t, bus_size_t,
|
||||
bus_addr_t, int, bus_addr_t *, bus_space_handle_t *));
|
||||
void eisa_mem_free __P((bus_space_tag_t, bus_space_handle_t,
|
||||
bus_size_t));
|
||||
void eisa_attach_hook(struct device *, struct device *,
|
||||
struct eisabus_attach_args *);
|
||||
int eisa_maxslots(eisa_chipset_tag_t);
|
||||
int eisa_intr_map(eisa_chipset_tag_t, u_int,
|
||||
eisa_intr_handle_t *);
|
||||
const char *eisa_intr_string(eisa_chipset_tag_t, eisa_intr_handle_t);
|
||||
void *eisa_intr_establish(eisa_chipset_tag_t,
|
||||
eisa_intr_handle_t, int, int, int (*)(void *), void *);
|
||||
void eisa_intr_disestablish(eisa_chipset_tag_t, void *);
|
||||
int eisa_mem_alloc(bus_space_tag_t, bus_size_t, bus_size_t,
|
||||
bus_addr_t, int, bus_addr_t *, bus_space_handle_t *);
|
||||
void eisa_mem_free(bus_space_tag_t, bus_space_handle_t,
|
||||
bus_size_t);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isa_machdep.h,v 1.14 2000/02/07 22:07:29 thorpej Exp $ */
|
||||
/* $NetBSD: isa_machdep.h,v 1.15 2000/06/01 00:04:51 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -109,15 +109,15 @@ struct isabus_attach_args; /* XXX */
|
|||
/*
|
||||
* Functions provided to machine-independent ISA code.
|
||||
*/
|
||||
void isa_attach_hook __P((struct device *, struct device *,
|
||||
struct isabus_attach_args *));
|
||||
int isa_intr_alloc __P((isa_chipset_tag_t, int, int, int *));
|
||||
void *isa_intr_establish __P((isa_chipset_tag_t ic, int irq, int type,
|
||||
int level, int (*ih_fun)(void *), void *ih_arg));
|
||||
void isa_intr_disestablish __P((isa_chipset_tag_t ic, void *handler));
|
||||
int isa_mem_alloc __P((bus_space_tag_t, bus_size_t, bus_size_t,
|
||||
bus_addr_t, int, bus_addr_t *, bus_space_handle_t *));
|
||||
void isa_mem_free __P((bus_space_tag_t, bus_space_handle_t, bus_size_t));
|
||||
void isa_attach_hook(struct device *, struct device *,
|
||||
struct isabus_attach_args *);
|
||||
int isa_intr_alloc(isa_chipset_tag_t, int, int, int *);
|
||||
void *isa_intr_establish(isa_chipset_tag_t ic, int irq, int type,
|
||||
int level, int (*ih_fun)(void *), void *ih_arg);
|
||||
void isa_intr_disestablish(isa_chipset_tag_t ic, void *handler);
|
||||
int isa_mem_alloc(bus_space_tag_t, bus_size_t, bus_size_t,
|
||||
bus_addr_t, int, bus_addr_t *, bus_space_handle_t *);
|
||||
void isa_mem_free(bus_space_tag_t, bus_space_handle_t, bus_size_t);
|
||||
|
||||
#define isa_dmainit(ic, bst, dmat, d) \
|
||||
_isa_dmainit(&(ic)->ic_dmastate, (bst), (dmat), (d))
|
||||
|
@ -241,7 +241,7 @@ struct i386_isa_dma_cookie {
|
|||
*/
|
||||
|
||||
struct intrhand {
|
||||
int (*ih_fun) __P((void *));
|
||||
int (*ih_fun)(void *);
|
||||
void *ih_arg;
|
||||
u_long ih_count;
|
||||
struct intrhand *ih_next;
|
||||
|
@ -292,6 +292,6 @@ extern u_long atdevbase; /* kernel virtual address of "hole" */
|
|||
/*
|
||||
* Miscellanous functions.
|
||||
*/
|
||||
void sysbeep __P((int, int)); /* beep with the system speaker */
|
||||
void sysbeep(int, int); /* beep with the system speaker */
|
||||
|
||||
#endif /* _I386_ISA_MACHDEP_H_ XXX */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isapnp_machdep.h,v 1.4 1999/03/19 03:18:54 cgd Exp $ */
|
||||
/* $NetBSD: isapnp_machdep.h,v 1.5 2000/06/01 00:04:51 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -40,7 +40,7 @@
|
|||
/*
|
||||
* Functions provided to machine-independent ISA PnP code.
|
||||
*/
|
||||
int isapnp_map __P((struct isapnp_softc *));
|
||||
void isapnp_unmap __P((struct isapnp_softc *));
|
||||
int isapnp_map_readport __P((struct isapnp_softc *));
|
||||
void isapnp_unmap_readport __P((struct isapnp_softc *));
|
||||
int isapnp_map(struct isapnp_softc *);
|
||||
void isapnp_unmap(struct isapnp_softc *);
|
||||
int isapnp_map_readport(struct isapnp_softc *);
|
||||
void isapnp_unmap_readport(struct isapnp_softc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mca_machdep.h,v 1.1 2000/05/11 16:38:13 jdolecek Exp $ */
|
||||
/* $NetBSD: mca_machdep.h,v 1.2 2000/06/01 00:04:51 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -39,7 +39,7 @@ extern struct i386_bus_dma_tag mca_bus_dma_tag;
|
|||
/* set to 1 if MCA bus is detected */
|
||||
extern int MCA_system;
|
||||
|
||||
int mca_nmi __P((void));
|
||||
int mca_nmi(void);
|
||||
|
||||
/*
|
||||
* Types provided to machine-independent MCA code.
|
||||
|
@ -56,14 +56,14 @@ typedef int mca_intr_handle_t;
|
|||
*/
|
||||
struct mcabus_attach_args;
|
||||
|
||||
void mca_attach_hook __P((struct device *, struct device *,
|
||||
struct mcabus_attach_args *));
|
||||
void *mca_intr_establish __P((mca_chipset_tag_t, mca_intr_handle_t,
|
||||
int, int (*)(void *), void *));
|
||||
void mca_intr_disestablish __P((mca_chipset_tag_t, void *));
|
||||
int mca_conf_read __P((mca_chipset_tag_t, int, int));
|
||||
void mca_conf_write __P((mca_chipset_tag_t, int, int, int));
|
||||
void mca_busprobe __P((void));
|
||||
void mca_attach_hook(struct device *, struct device *,
|
||||
struct mcabus_attach_args *);
|
||||
void *mca_intr_establish(mca_chipset_tag_t, mca_intr_handle_t,
|
||||
int, int (*)(void *), void *);
|
||||
void mca_intr_disestablish(mca_chipset_tag_t, void *);
|
||||
int mca_conf_read(mca_chipset_tag_t, int, int);
|
||||
void mca_conf_write(mca_chipset_tag_t, int, int, int);
|
||||
void mca_busprobe(void);
|
||||
|
||||
/* MCA register addresses for IBM PS/2 */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.h,v 1.12 1999/03/19 03:36:13 cgd Exp $ */
|
||||
/* $NetBSD: pci_machdep.h,v 1.13 2000/06/01 00:04:51 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -76,24 +76,24 @@ typedef int pci_intr_handle_t;
|
|||
* NOT TO BE USED DIRECTLY BY MACHINE INDEPENDENT CODE.
|
||||
*/
|
||||
extern int pci_mode;
|
||||
int pci_mode_detect __P((void));
|
||||
int pci_bus_flags __P((void));
|
||||
int pci_mode_detect(void);
|
||||
int pci_bus_flags(void);
|
||||
|
||||
/*
|
||||
* Functions provided to machine-independent PCI code.
|
||||
*/
|
||||
void pci_attach_hook __P((struct device *, struct device *,
|
||||
struct pcibus_attach_args *));
|
||||
int pci_bus_maxdevs __P((pci_chipset_tag_t, int));
|
||||
pcitag_t pci_make_tag __P((pci_chipset_tag_t, int, int, int));
|
||||
void pci_decompose_tag __P((pci_chipset_tag_t, pcitag_t,
|
||||
int *, int *, int *));
|
||||
pcireg_t pci_conf_read __P((pci_chipset_tag_t, pcitag_t, int));
|
||||
void pci_conf_write __P((pci_chipset_tag_t, pcitag_t, int,
|
||||
pcireg_t));
|
||||
int pci_intr_map __P((pci_chipset_tag_t, pcitag_t, int, int,
|
||||
pci_intr_handle_t *));
|
||||
const char *pci_intr_string __P((pci_chipset_tag_t, pci_intr_handle_t));
|
||||
void *pci_intr_establish __P((pci_chipset_tag_t, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *));
|
||||
void pci_intr_disestablish __P((pci_chipset_tag_t, void *));
|
||||
void pci_attach_hook(struct device *, struct device *,
|
||||
struct pcibus_attach_args *);
|
||||
int pci_bus_maxdevs(pci_chipset_tag_t, int);
|
||||
pcitag_t pci_make_tag(pci_chipset_tag_t, int, int, int);
|
||||
void pci_decompose_tag(pci_chipset_tag_t, pcitag_t,
|
||||
int *, int *, int *);
|
||||
pcireg_t pci_conf_read(pci_chipset_tag_t, pcitag_t, int);
|
||||
void pci_conf_write(pci_chipset_tag_t, pcitag_t, int,
|
||||
pcireg_t);
|
||||
int pci_intr_map(pci_chipset_tag_t, pcitag_t, int, int,
|
||||
pci_intr_handle_t *);
|
||||
const char *pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t);
|
||||
void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *);
|
||||
void pci_intr_disestablish(pci_chipset_tag_t, void *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rbus_machdep.h,v 1.2 1999/10/15 06:43:05 haya Exp $ */
|
||||
/* $NetBSD: rbus_machdep.h,v 1.3 2000/06/01 00:04:51 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999
|
||||
|
@ -36,8 +36,8 @@
|
|||
|
||||
struct pci_attach_args; /* XXX */
|
||||
|
||||
void _i386_memio_unmap __P((bus_space_tag_t, bus_space_handle_t,
|
||||
bus_size_t, bus_addr_t *));
|
||||
void _i386_memio_unmap(bus_space_tag_t, bus_space_handle_t,
|
||||
bus_size_t, bus_addr_t *);
|
||||
|
||||
#define md_space_map(bt, physaddr, size, flags, bshp) \
|
||||
_i386_memio_map((bt), (physaddr), (size), (flags), (bshp))
|
||||
|
@ -46,7 +46,7 @@ void _i386_memio_unmap __P((bus_space_tag_t, bus_space_handle_t,
|
|||
_i386_memio_unmap((bt), (bsh), (size), (adrp))
|
||||
|
||||
|
||||
rbus_tag_t rbus_pccbb_parent_io __P((struct pci_attach_args *pa));
|
||||
rbus_tag_t rbus_pccbb_parent_mem __P((struct pci_attach_args *pa));
|
||||
rbus_tag_t rbus_pccbb_parent_io(struct pci_attach_args *pa);
|
||||
rbus_tag_t rbus_pccbb_parent_mem(struct pci_attach_args *pa);
|
||||
|
||||
#endif /* _ARCH_I386_I386_RBUS_MACHDEP_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.h,v 1.10 2000/02/03 19:27:45 tsubai Exp $ */
|
||||
/* $NetBSD: pci_machdep.h,v 1.11 2000/06/01 00:04:55 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -67,23 +67,23 @@ extern struct macppc_bus_dma_tag pci_bus_dma_tag;
|
|||
/*
|
||||
* Functions provided to machine-independent PCI code.
|
||||
*/
|
||||
void pci_attach_hook __P((struct device *, struct device *,
|
||||
struct pcibus_attach_args *));
|
||||
int pci_bus_maxdevs __P((pci_chipset_tag_t, int));
|
||||
pcitag_t pci_make_tag __P((pci_chipset_tag_t, int, int, int));
|
||||
void pci_decompose_tag __P((pci_chipset_tag_t, pcitag_t,
|
||||
int *, int *, int *));
|
||||
pcireg_t pci_conf_read __P((pci_chipset_tag_t, pcitag_t, int));
|
||||
void pci_conf_write __P((pci_chipset_tag_t, pcitag_t, int,
|
||||
pcireg_t));
|
||||
int pci_intr_map __P((pci_chipset_tag_t, pcitag_t, int, int,
|
||||
pci_intr_handle_t *));
|
||||
const char *pci_intr_string __P((pci_chipset_tag_t, pci_intr_handle_t));
|
||||
void *pci_intr_establish __P((pci_chipset_tag_t, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *));
|
||||
void pci_intr_disestablish __P((pci_chipset_tag_t, void *));
|
||||
void pci_attach_hook(struct device *, struct device *,
|
||||
struct pcibus_attach_args *);
|
||||
int pci_bus_maxdevs(pci_chipset_tag_t, int);
|
||||
pcitag_t pci_make_tag(pci_chipset_tag_t, int, int, int);
|
||||
void pci_decompose_tag(pci_chipset_tag_t, pcitag_t,
|
||||
int *, int *, int *);
|
||||
pcireg_t pci_conf_read(pci_chipset_tag_t, pcitag_t, int);
|
||||
void pci_conf_write(pci_chipset_tag_t, pcitag_t, int,
|
||||
pcireg_t);
|
||||
int pci_intr_map(pci_chipset_tag_t, pcitag_t, int, int,
|
||||
pci_intr_handle_t *);
|
||||
const char *pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t);
|
||||
void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *);
|
||||
void pci_intr_disestablish(pci_chipset_tag_t, void *);
|
||||
|
||||
/*
|
||||
* Internal functions.
|
||||
*/
|
||||
void pci_init __P((int));
|
||||
void pci_init(int);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rbus_machdep.h,v 1.2 1999/10/15 07:20:42 tsubai Exp $ */
|
||||
/* $NetBSD: rbus_machdep.h,v 1.3 2000/06/01 00:04:55 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999
|
||||
|
@ -31,12 +31,12 @@
|
|||
#define _MACHINE_RBUS_MACHDEP_H_
|
||||
|
||||
struct pci_attach_args;
|
||||
rbus_tag_t rbus_pccbb_parent_io __P((struct pci_attach_args *));
|
||||
rbus_tag_t rbus_pccbb_parent_mem __P((struct pci_attach_args *));
|
||||
rbus_tag_t rbus_pccbb_parent_io(struct pci_attach_args *);
|
||||
rbus_tag_t rbus_pccbb_parent_mem(struct pci_attach_args *);
|
||||
|
||||
int md_space_map __P((bus_space_tag_t, bus_addr_t, bus_size_t, int,
|
||||
bus_space_handle_t *));
|
||||
void md_space_unmap __P((bus_space_tag_t, bus_space_handle_t, bus_size_t,
|
||||
bus_addr_t *));
|
||||
int md_space_map(bus_space_tag_t, bus_addr_t, bus_size_t, int,
|
||||
bus_space_handle_t *);
|
||||
void md_space_unmap(bus_space_tag_t, bus_space_handle_t, bus_size_t,
|
||||
bus_addr_t *);
|
||||
|
||||
#endif /* _MACHINE_RBUS_MACHDEP_H_ */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isa_machdep.h,v 1.1 2000/02/29 15:21:30 nonaka Exp $ */
|
||||
/* $NetBSD: isa_machdep.h,v 1.2 2000/06/01 00:04:54 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -109,11 +109,11 @@ struct isabus_attach_args; /* XXX */
|
|||
/*
|
||||
* Functions provided to machine-independent ISA code.
|
||||
*/
|
||||
void isa_attach_hook __P((struct device *, struct device *,
|
||||
struct isabus_attach_args *));
|
||||
void *isa_intr_establish __P((isa_chipset_tag_t ic, int irq, int type,
|
||||
int level, int (*ih_fun)(void *), void *ih_arg));
|
||||
void isa_intr_disestablish __P((isa_chipset_tag_t ic, void *handler));
|
||||
void isa_attach_hook(struct device *, struct device *,
|
||||
struct isabus_attach_args *);
|
||||
void *isa_intr_establish(isa_chipset_tag_t ic, int irq, int type,
|
||||
int level, int (*ih_fun)(void *), void *ih_arg);
|
||||
void isa_intr_disestablish(isa_chipset_tag_t ic, void *handler);
|
||||
|
||||
#define isa_dmainit(ic, bst, dmat, d) \
|
||||
_isa_dmainit(&(ic)->ic_dmastate, (bst), (dmat), (d))
|
||||
|
@ -239,6 +239,6 @@ extern paddr_t isaphysmem;
|
|||
/*
|
||||
* Miscellanous functions.
|
||||
*/
|
||||
void isabeep __P((int, int)); /* beep with the system speaker */
|
||||
void isabeep(int, int); /* beep with the system speaker */
|
||||
|
||||
#endif /* _PREP_ISA_MACHDEP_H_ XXX */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isapnp_machdep.h,v 1.1 2000/02/29 15:21:30 nonaka Exp $ */
|
||||
/* $NetBSD: isapnp_machdep.h,v 1.2 2000/06/01 00:04:54 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -40,7 +40,7 @@
|
|||
/*
|
||||
* Functions provided to machine-independent ISA PnP code.
|
||||
*/
|
||||
int isapnp_map __P((struct isapnp_softc *));
|
||||
void isapnp_unmap __P((struct isapnp_softc *));
|
||||
int isapnp_map_readport __P((struct isapnp_softc *));
|
||||
void isapnp_unmap_readport __P((struct isapnp_softc *));
|
||||
int isapnp_map(struct isapnp_softc *);
|
||||
void isapnp_unmap(struct isapnp_softc *);
|
||||
int isapnp_map_readport(struct isapnp_softc *);
|
||||
void isapnp_unmap_readport(struct isapnp_softc *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.h,v 1.1 2000/02/29 15:21:30 nonaka Exp $ */
|
||||
/* $NetBSD: pci_machdep.h,v 1.2 2000/06/01 00:04:54 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -56,18 +56,17 @@ extern struct prep_bus_dma_tag pci_bus_dma_tag;
|
|||
/*
|
||||
* Functions provided to machine-independent PCI code.
|
||||
*/
|
||||
void pci_attach_hook __P((struct device *, struct device *,
|
||||
struct pcibus_attach_args *));
|
||||
int pci_bus_maxdevs __P((pci_chipset_tag_t, int));
|
||||
pcitag_t pci_make_tag __P((pci_chipset_tag_t, int, int, int));
|
||||
void pci_decompose_tag __P((pci_chipset_tag_t, pcitag_t,
|
||||
int *, int *, int *));
|
||||
pcireg_t pci_conf_read __P((pci_chipset_tag_t, pcitag_t, int));
|
||||
void pci_conf_write __P((pci_chipset_tag_t, pcitag_t, int,
|
||||
pcireg_t));
|
||||
int pci_intr_map __P((pci_chipset_tag_t, pcitag_t, int, int,
|
||||
pci_intr_handle_t *));
|
||||
const char *pci_intr_string __P((pci_chipset_tag_t, pci_intr_handle_t));
|
||||
void *pci_intr_establish __P((pci_chipset_tag_t, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *));
|
||||
void pci_intr_disestablish __P((pci_chipset_tag_t, void *));
|
||||
void pci_attach_hook(struct device *, struct device *,
|
||||
struct pcibus_attach_args *);
|
||||
int pci_bus_maxdevs(pci_chipset_tag_t, int);
|
||||
pcitag_t pci_make_tag(pci_chipset_tag_t, int, int, int);
|
||||
void pci_decompose_tag(pci_chipset_tag_t, pcitag_t,
|
||||
int *, int *, int *);
|
||||
pcireg_t pci_conf_read(pci_chipset_tag_t, pcitag_t, int);
|
||||
void pci_conf_write(pci_chipset_tag_t, pcitag_t, int, pcireg_t);
|
||||
int pci_intr_map(pci_chipset_tag_t, pcitag_t, int, int,
|
||||
pci_intr_handle_t *);
|
||||
const char *pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t);
|
||||
void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *);
|
||||
void pci_intr_disestablish(pci_chipset_tag_t, void *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pci_machdep.h,v 1.2 2000/05/24 20:27:52 eeh Exp $ */
|
||||
/* $NetBSD: pci_machdep.h,v 1.3 2000/06/01 00:04:55 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 Matthew R. Green
|
||||
|
@ -46,18 +46,18 @@ struct sparc_pci_chipset {
|
|||
/* do we need any more here? */
|
||||
};
|
||||
|
||||
void pci_attach_hook __P((struct device *, struct device *,
|
||||
struct pcibus_attach_args *));
|
||||
int pci_bus_maxdevs __P((pci_chipset_tag_t, int));
|
||||
pcitag_t pci_make_tag __P((pci_chipset_tag_t, int, int, int));
|
||||
pcireg_t pci_conf_read __P((pci_chipset_tag_t, pcitag_t, int));
|
||||
void pci_conf_write __P((pci_chipset_tag_t, pcitag_t, int,
|
||||
pcireg_t));
|
||||
int pci_intr_map __P((pci_chipset_tag_t, pcitag_t, int, int,
|
||||
pci_intr_handle_t *));
|
||||
const char *pci_intr_string __P((pci_chipset_tag_t, pci_intr_handle_t));
|
||||
void *pci_intr_establish __P((pci_chipset_tag_t, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *));
|
||||
void pci_intr_disestablish __P((pci_chipset_tag_t, void *));
|
||||
void pci_attach_hook(struct device *, struct device *,
|
||||
struct pcibus_attach_args *);
|
||||
int pci_bus_maxdevs(pci_chipset_tag_t, int);
|
||||
pcitag_t pci_make_tag(pci_chipset_tag_t, int, int, int);
|
||||
pcireg_t pci_conf_read(pci_chipset_tag_t, pcitag_t, int);
|
||||
void pci_conf_write(pci_chipset_tag_t, pcitag_t, int,
|
||||
pcireg_t);
|
||||
int pci_intr_map(pci_chipset_tag_t, pcitag_t, int, int,
|
||||
pci_intr_handle_t *);
|
||||
const char *pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t);
|
||||
void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
|
||||
int, int (*)(void *), void *);
|
||||
void pci_intr_disestablish(pci_chipset_tag_t, void *);
|
||||
|
||||
#endif /* _MACHINE_PCI_MACHDEP_H_ */
|
||||
|
|
Loading…
Reference in New Issue