pnpvar.h (139267) | pnpvar.h (139268) |
---|---|
1/*- 2 * Copyright (c) 1999 Doug Rabson 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1999 Doug Rabson 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/isa/pnpvar.h 139267 2004-12-24 21:53:21Z imp $ | 26 * $FreeBSD: head/sys/isa/pnpvar.h 139268 2004-12-24 22:08:57Z imp $ |
27 */ 28 29#ifndef _ISA_PNPVAR_H_ 30#define _ISA_PNPVAR_H_ 31 32#ifdef _KERNEL 33 34#define PNP_HEXTONUM(c) ((c) >= 'a' \ --- 8 unchanged lines hidden (view full) --- 43 | (((s[1] - '@') & 0x07) << 13) \ 44 | (((s[2] - '@') & 0x1f) << 8) \ 45 | (PNP_HEXTONUM(s[4]) << 16) \ 46 | (PNP_HEXTONUM(s[3]) << 20) \ 47 | (PNP_HEXTONUM(s[6]) << 24) \ 48 | (PNP_HEXTONUM(s[5]) << 28)) 49 50typedef int pnp_scan_cb(device_t dev, u_char tag, u_char *res, int len, | 27 */ 28 29#ifndef _ISA_PNPVAR_H_ 30#define _ISA_PNPVAR_H_ 31 32#ifdef _KERNEL 33 34#define PNP_HEXTONUM(c) ((c) >= 'a' \ --- 8 unchanged lines hidden (view full) --- 43 | (((s[1] - '@') & 0x07) << 13) \ 44 | (((s[2] - '@') & 0x1f) << 8) \ 45 | (PNP_HEXTONUM(s[4]) << 16) \ 46 | (PNP_HEXTONUM(s[3]) << 20) \ 47 | (PNP_HEXTONUM(s[6]) << 24) \ 48 | (PNP_HEXTONUM(s[5]) << 28)) 49 50typedef int pnp_scan_cb(device_t dev, u_char tag, u_char *res, int len, |
51 struct isa_config *config, int ldn); | 51 struct isa_config *config, int ldn); |
52 | 52 |
53char *pnp_eisaformat(u_int32_t id); 54void pnp_printf(u_int32_t id, char *fmt, ...); | 53char *pnp_eisaformat(uint32_t id); 54void pnp_printf(uint32_t id, char *fmt, ...); |
55void pnp_parse_resources(device_t dev, u_char *resources, int len, int ldn); 56u_char *pnp_parse_dependant(device_t dev, u_char *resources, int len, | 55void pnp_parse_resources(device_t dev, u_char *resources, int len, int ldn); 56u_char *pnp_parse_dependant(device_t dev, u_char *resources, int len, |
57 struct isa_config *config, int ldn); | 57 struct isa_config *config, int ldn); |
58u_char *pnp_scan_resources(device_t dev, u_char *resources, int len, | 58u_char *pnp_scan_resources(device_t dev, u_char *resources, int len, |
59 struct isa_config *config, int ldn, pnp_scan_cb *cb); | 59 struct isa_config *config, int ldn, pnp_scan_cb *cb); |
60 | 60 |
61void pnp_check_quirks(u_int32_t vendor_id, u_int32_t logical_id, int ldn, struct isa_config *config); | 61void pnp_check_quirks(uint32_t vendor_id, uint32_t logical_id, int ldn, 62 struct isa_config *config); |
62 63#endif /* _KERNEL */ 64 65#endif /* !_ISA_PNPVAR_H_ */ | 63 64#endif /* _KERNEL */ 65 66#endif /* !_ISA_PNPVAR_H_ */ |