Rev 606 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 606 | Rev 853 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | #define ARC_MAGIC 0x53435241 |
36 | #define ARC_MAGIC 0x53435241 |
37 | /* Frame size used by ARC */ |
37 | /* Frame size used by ARC */ |
38 | #define ARC_FRAME 4096 |
38 | #define ARC_FRAME 4096 |
39 | 39 | ||
40 | typedef enum { |
40 | typedef enum { |
- | 41 | CmResourceTypeNull = 0, |
|
- | 42 | CmResourceTypePort, |
|
- | 43 | CmResourceTypeInterrupt, |
|
- | 44 | CmResourceTypeMemory, |
|
- | 45 | CmResourceTypeDma, |
|
- | 46 | CmResourceTypeDeviceSpecific, |
|
- | 47 | CmResourceTypeVendor, |
|
- | 48 | CmResourceTypeProductName, |
|
- | 49 | CmResourceTypeSerialNumber |
|
- | 50 | }cm_resource_type; |
|
- | 51 | ||
- | 52 | typedef struct { |
|
- | 53 | __u8 type; |
|
- | 54 | __u8 sharedisposition; |
|
- | 55 | __u16 flags; |
|
- | 56 | union { |
|
- | 57 | struct { |
|
- | 58 | long long start; /* 64-bit phys address */ |
|
- | 59 | unsigned long length; |
|
- | 60 | }port; |
|
- | 61 | struct { |
|
- | 62 | unsigned long level; |
|
- | 63 | unsigned long vector; |
|
- | 64 | unsigned long reserved1; |
|
- | 65 | }interrupt; |
|
- | 66 | struct { |
|
- | 67 | long long start; /* 64-bit phys address */ |
|
- | 68 | unsigned long length; |
|
- | 69 | }memory; |
|
- | 70 | }u; |
|
- | 71 | }__attribute__ ((packed)) cm_resource_descriptor; |
|
- | 72 | ||
- | 73 | typedef struct { |
|
- | 74 | __u16 version; |
|
- | 75 | __u16 revision; |
|
- | 76 | unsigned long count; |
|
- | 77 | cm_resource_descriptor descr[1]; |
|
- | 78 | }__attribute__ ((packed)) cm_resource_list; |
|
- | 79 | ||
- | 80 | typedef enum { |
|
41 | SystemClass = 0, |
81 | SystemClass = 0, |
42 | ProcessorClass, |
82 | ProcessorClass, |
43 | CacheClass, |
83 | CacheClass, |
44 | AdapterClass, |
84 | AdapterClass, |
45 | ControllerClass, |
85 | ControllerClass, |
Line 209... | Line 249... | ||
209 | void *privvector; |
249 | void *privvector; |
210 | __u32 adaptercount; |
250 | __u32 adaptercount; |
211 | }__attribute__ ((packed)) arc_sbp; |
251 | }__attribute__ ((packed)) arc_sbp; |
212 | 252 | ||
213 | extern int arc_init(void); |
253 | extern int arc_init(void); |
214 | extern void arc_print_memory_map(void); |
- | |
215 | extern int arc_enabled(void); |
254 | extern int arc_enabled(void); |
216 | extern void arc_print_devices(void); |
- | |
217 | void arc_frame_init(void); |
255 | void arc_frame_init(void); |
218 | void arc_console(void); |
256 | void arc_console(void); |
219 | 257 | ||
220 | #endif |
258 | #endif |