Deleted Added
full compact
config.h (45775) config.h (46021)
1/*
2 * Copyright (c) 1980, 1993
3 * The Regents of the University of California. 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

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

85 */
86#define DRIVER 1
87#define NORMAL 2
88#define INVISIBLE 3
89#define PROFILING 4
90#define SYSTEMSPEC 5
91#define SWAPSPEC 6
92#define COMPDEVICE 7
1/*
2 * Copyright (c) 1980, 1993
3 * The Regents of the University of California. 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

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

85 */
86#define DRIVER 1
87#define NORMAL 2
88#define INVISIBLE 3
89#define PROFILING 4
90#define SYSTEMSPEC 5
91#define SWAPSPEC 6
92#define COMPDEVICE 7
93#define COMPSPEC 8
94#define NODEPEND 9
95#define LOCAL 10
93#define NODEPEND 8
94#define LOCAL 9
96#define DEVDONE 0x80000000
97#define TYPEMASK 0x7fffffff
98
99/*
100 * Attributes (flags).
101 */
102#define CONFIGDEP 1
103#define NO_IMPLCT_RULE 2
104#define NO_OBJ 4
105#define BEFORE_DEPEND 8
106
95#define DEVDONE 0x80000000
96#define TYPEMASK 0x7fffffff
97
98/*
99 * Attributes (flags).
100 */
101#define CONFIGDEP 1
102#define NO_IMPLCT_RULE 2
103#define NO_OBJ 4
104#define BEFORE_DEPEND 8
105
107struct idlst {
108 char *id;
109 struct idlst *id_next;
110};
111
112struct device {
113 int d_type; /* CONTROLLER, DEVICE, bus adaptor */
114 struct device *d_conn; /* what it is connected to */
115 char *d_name; /* name of device (e.g. rk11) */
106struct device {
107 int d_type; /* CONTROLLER, DEVICE, bus adaptor */
108 struct device *d_conn; /* what it is connected to */
109 char *d_name; /* name of device (e.g. rk11) */
116 struct idlst *d_vec; /* interrupt vectors */
117 int d_pri; /* interrupt priority */
118 int d_addr; /* address of csr */
119 int d_unit; /* unit number */
120 int d_drive; /* drive number */
121 int d_target; /* target number */
122 int d_lun; /* unit number */
123 int d_slave; /* slave number */
124#define QUES -1 /* -1 means '?' */
125#define UNKNOWN -2 /* -2 means not set yet */
126 int d_dk; /* if init 1 set to number for iostat */
127 int d_flags; /* flags for device init */
128 int d_conflicts; /* I'm allowed to conflict */
129 int d_disabled; /* nonzero to skip probe/attach */
130 char *d_port; /* io port base manifest constant */
131 int d_portn; /* io port base (if number not manifest) */
110 int d_unit; /* unit number */
111 int d_drive; /* drive number */
112 int d_target; /* target number */
113 int d_lun; /* unit number */
114 int d_slave; /* slave number */
115#define QUES -1 /* -1 means '?' */
116#define UNKNOWN -2 /* -2 means not set yet */
117 int d_dk; /* if init 1 set to number for iostat */
118 int d_flags; /* flags for device init */
119 int d_conflicts; /* I'm allowed to conflict */
120 int d_disabled; /* nonzero to skip probe/attach */
121 char *d_port; /* io port base manifest constant */
122 int d_portn; /* io port base (if number not manifest) */
132 char *d_mask; /* interrupt mask */
133 int d_maddr; /* io memory base */
134 int d_msize; /* io memory size */
135 int d_drq; /* DMA request */
136 int d_irq; /* interrupt request */
137 struct device *d_next; /* Next one in list */
138};
139#define TO_NEXUS (struct device *)-1
140#define TO_VBA (struct device *)-2

--- 86 unchanged lines hidden ---
123 int d_maddr; /* io memory base */
124 int d_msize; /* io memory size */
125 int d_drq; /* DMA request */
126 int d_irq; /* interrupt request */
127 struct device *d_next; /* Next one in list */
128};
129#define TO_NEXUS (struct device *)-1
130#define TO_VBA (struct device *)-2

--- 86 unchanged lines hidden ---