isapnp.h (50477) | isapnp.h (55206) |
---|---|
1/* 2 * Copyright (c) 1996, Sujal M. Patel 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1996, Sujal M. Patel 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/boot/common/isapnp.h 50477 1999-08-28 01:08:13Z peter $ | 32 * $FreeBSD: head/sys/boot/common/isapnp.h 55206 1999-12-29 05:07:58Z peter $ |
33 */ 34 35#ifndef _I386_ISA_PNP_H_ 36#define _I386_ISA_PNP_H_ 37 38/* Maximum Number of PnP Devices. 8 should be plenty */ 39#define MAX_PNP_CARDS 8 40/* 41 * the following is the maximum number of PnP Logical devices that 42 * userconfig can handle. 43 */ 44#define MAX_PNP_LDN 20 45 46/* Static ports to access PnP state machine */ | 33 */ 34 35#ifndef _I386_ISA_PNP_H_ 36#define _I386_ISA_PNP_H_ 37 38/* Maximum Number of PnP Devices. 8 should be plenty */ 39#define MAX_PNP_CARDS 8 40/* 41 * the following is the maximum number of PnP Logical devices that 42 * userconfig can handle. 43 */ 44#define MAX_PNP_LDN 20 45 46/* Static ports to access PnP state machine */ |
47#ifndef KERNEL | 47#ifndef _KERNEL |
48#ifdef PC98 49/* pnp.h is included from pnpinfo.c. */ 50#define _PNP_ADDRESS 0x259 51#define _PNP_WRITE_DATA 0xa59 52#else 53#define _PNP_ADDRESS 0x279 54#define _PNP_WRITE_DATA 0xa79 55#endif --- 206 unchanged lines hidden (view full) --- 262 u_short port[8]; /* The Base Address of the Port */ 263 struct { 264 u_long base; /* Memory Base Address */ 265 int control; /* Memory Control Register */ 266 u_long range; /* Memory Range *OR* Upper Limit */ 267 } mem[4]; 268}; 269 | 48#ifdef PC98 49/* pnp.h is included from pnpinfo.c. */ 50#define _PNP_ADDRESS 0x259 51#define _PNP_WRITE_DATA 0xa59 52#else 53#define _PNP_ADDRESS 0x279 54#define _PNP_WRITE_DATA 0xa79 55#endif --- 206 unchanged lines hidden (view full) --- 262 u_short port[8]; /* The Base Address of the Port */ 263 struct { 264 u_long base; /* Memory Base Address */ 265 int control; /* Memory Control Register */ 266 u_long range; /* Memory Range *OR* Upper Limit */ 267 } mem[4]; 268}; 269 |
270#ifdef KERNEL | 270#ifdef _KERNEL |
271 272struct pnp_device { 273 char *pd_name; 274 char * (*pd_probe ) (u_long csn, u_long vendor_id); 275 void (*pd_attach ) (u_long csn, u_long vend_id, char * name, 276 struct isa_device *dev); 277 u_long *pd_count; 278 u_int *imask ; --- 26 unchanged lines hidden (view full) --- 305int write_pnp_parms(struct pnp_cinfo *d, int ldn); 306int enable_pnp_card(void); 307 308/* 309 * used by autoconfigure to actually probe and attach drivers 310 */ 311void pnp_configure __P((void)); 312 | 271 272struct pnp_device { 273 char *pd_name; 274 char * (*pd_probe ) (u_long csn, u_long vendor_id); 275 void (*pd_attach ) (u_long csn, u_long vend_id, char * name, 276 struct isa_device *dev); 277 u_long *pd_count; 278 u_int *imask ; --- 26 unchanged lines hidden (view full) --- 305int write_pnp_parms(struct pnp_cinfo *d, int ldn); 306int enable_pnp_card(void); 307 308/* 309 * used by autoconfigure to actually probe and attach drivers 310 */ 311void pnp_configure __P((void)); 312 |
313#endif /* KERNEL */ | 313#endif /* _KERNEL */ |
314 315#endif /* !_I386_ISA_PNP_H_ */ | 314 315#endif /* !_I386_ISA_PNP_H_ */ |