Deleted Added
full compact
pnp.4th (87636) pnp.4th (186789)
1\ Copyright (c) 2000 Daniel C. Sobral <dcs@freebsd.org>
2\ All rights reserved.
3\
4\ Redistribution and use in source and binary forms, with or without
5\ modification, are permitted provided that the following conditions
6\ are met:
7\ 1. Redistributions of source code must retain the above copyright
8\ notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17\ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18\ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19\ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20\ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21\ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23\ SUCH DAMAGE.
24\
1\ Copyright (c) 2000 Daniel C. Sobral <dcs@freebsd.org>
2\ All rights reserved.
3\
4\ Redistribution and use in source and binary forms, with or without
5\ modification, are permitted provided that the following conditions
6\ are met:
7\ 1. Redistributions of source code must retain the above copyright
8\ notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17\ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18\ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19\ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20\ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21\ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23\ SUCH DAMAGE.
24\
25\ $FreeBSD: head/sys/boot/forth/pnp.4th 87636 2001-12-11 00:49:34Z jhb $
25\ $FreeBSD: head/sys/boot/forth/pnp.4th 186789 2009-01-05 20:09:54Z luigi $
26
26
27
28\ The following pnp code is used in pnp.4th and pnp.c
29structure: STAILQ_HEAD
30 ptr stqh_first \ type*
31 ptr stqh_last \ type**
32;structure
33
34structure: STAILQ_ENTRY
35 ptr stqe_next \ type*
36;structure
37
38structure: pnphandler
39 ptr pnph.name
40 ptr pnph.enumerate
41;structure
42
43structure: pnpident
44 ptr pnpid.ident \ char*
45 sizeof STAILQ_ENTRY cells member: pnpid.link \ pnpident
46;structure
47
48structure: pnpinfo \ sync with sys/boot/config/bootstrap.h
49 ptr pnpi.desc
50 int pnpi.revision
51 ptr pnpi.module \ (char*) module args
52 int pnpi.argc
53 ptr pnpi.argv
54 ptr pnpi.handler \ pnphandler
55 sizeof STAILQ_HEAD member: pnpi.ident \ pnpident
56 sizeof STAILQ_ENTRY member: pnpi.link \ pnpinfo
57;structure
58\ end of pnp support
59
27pnpdevices drop
28
29: enumerate
30 pnphandlers begin
31 dup @
32 while
33 ." Probing " dup @ pnph.name @ dup strlen type ." ..." cr
34 0 over @ pnph.enumerate @ ccall drop

--- 138 unchanged lines hidden ---
60pnpdevices drop
61
62: enumerate
63 pnphandlers begin
64 dup @
65 while
66 ." Probing " dup @ pnph.name @ dup strlen type ." ..." cr
67 0 over @ pnph.enumerate @ ccall drop

--- 138 unchanged lines hidden ---