Changeset c7a7656 in mainline
- Timestamp:
- 2005-09-12T20:25:21Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1c9b02df
- Parents:
- 72dde3a
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/include/byteorder.h
r72dde3a rc7a7656 27 27 */ 28 28 29 #ifndef __mips 32_BYTEORDER_H__30 #define __mips 32_BYTEORDER_H__29 #ifndef __mips_BYTEORDER_H__ 30 #define __mips_BYTEORDER_H__ 31 31 32 32 #include <arch/types.h> … … 41 41 static inline __native __native_le2host(__native n) 42 42 { 43 return __u32_byte roder_swap(n);43 return __u32_byteorder_swap(n); 44 44 } 45 45 -
arch/mips32/include/drivers/arc.h
r72dde3a rc7a7656 27 27 */ 28 28 29 #ifndef __mips 32_ARC_H_30 #define __mips 32_ARC_H_29 #ifndef __mips_ARC_H_ 30 #define __mips_ARC_H_ 31 31 32 32 #include <arch/types.h> … … 35 35 #define ARC_MAGIC 0x53435241 36 36 37 typedef enum { 38 SystemClass = 0, 39 ProcessorClass, 40 CacheClass, 41 AdapterClass, 42 ControllerClass, 43 PeripheralClass, 44 MemoryClass 45 } arc_component_class; 46 47 typedef enum { 48 ARC_type = 0, 49 CPU_type, 50 FPU_type, 51 PrimaryICache, 52 PrimaryDCache, 53 SecondaryICache, 54 SecondaryDCache, 55 SecondaryCache, 56 Memory, /* Not in NT PROM */ 57 EISAAdapter, 58 TCAdapter, 59 SCSIAdapter, 60 DTIAdapter, 61 MultiFunctionAdapter, 62 DiskController, 63 TapeController, 64 CDROMController, 65 WORMController, 66 SerialController, 67 NetworkController, 68 DisplayController, 69 ParallelController, 70 PointerController, 71 KeyboardController, 72 AudioController, 73 OtherController, 74 DiskPeripheral, 75 FloppyDiskPeripheral, 76 TapePeripheral, 77 ModemPeripheral, 78 MonitorPeripheral, 79 PrinterPeripheral, 80 PointerPeripheral, 81 KeyboardPeripheral, 82 TerminalPeripheral, 83 LinePeripheral, 84 NetworkPeripheral, 85 OtherPeripheral, 86 XTalkAdapter, 87 PCIAdapter, 88 GIOAdapter, 89 TPUAdapter, 90 Anonymous 91 }arc_component_type; 92 93 typedef enum { 94 Failed = 1, 95 ReadOnly = 2, 96 Removable = 4, 97 ConsoleIn = 8, 98 ConsoleOut = 16, 99 Input = 32, 100 Output = 64 101 }arc_component_flags; 102 37 103 typedef struct { 38 } arc_component; 104 arc_component_class class; 105 arc_component_type type; 106 arc_component_flags flags; 107 __u16 revision; 108 __u16 version; 109 __u32 key; 110 __u32 affinitymask; 111 __u32 configdatasize; 112 __u32 identifier_len; 113 char *identifier; 114 } __attribute__ ((packed)) arc_component; 39 115 40 116 typedef struct { … … 46 122 __u16 seconds; 47 123 __u16 mseconds; 48 } arc_timeinfo;124 } __attribute__ ((packed)) arc_timeinfo; 49 125 50 126 /* This is the SGI block structure, WinNT has it different */ … … 136 212 extern int arc_enabled(void); 137 213 extern void arc_putchar(char ch); 214 extern void arc_print_devices(void); 138 215 139 216 #endif -
arch/mips32/src/drivers/arc.c
r72dde3a rc7a7656 46 46 }; 47 47 48 static char *ctypes[] = { 49 "ARC_type", 50 "CPU_type", 51 "FPU_type", 52 "PrimaryICache", 53 "PrimaryDCache", 54 "SecondaryICache", 55 "SecondaryDCache", 56 "SecondaryCache", 57 "Memory", 58 "EISAAdapter", 59 "TCAdapter", 60 "SCSIAdapter", 61 "DTIAdapter", 62 "MultiFunctionAdapter", 63 "DiskController", 64 "TapeController", 65 "CDROMController", 66 "WORMController", 67 "SerialController", 68 "NetworkController", 69 "DisplayController", 70 "ParallelController", 71 "PointerController", 72 "KeyboardController", 73 "AudioController", 74 "OtherController", 75 "DiskPeripheral", 76 "FloppyDiskPeripheral", 77 "TapePeripheral", 78 "ModemPeripheral", 79 "MonitorPeripheral", 80 "PrinterPeripheral", 81 "PointerPeripheral", 82 "KeyboardPeripheral", 83 "TerminalPeripheral", 84 "OtherPeripheral", 85 "LinePeripheral", 86 "NetworkPeripheral" 87 "OtherPeripheral", 88 "XTalkAdapter", 89 "PCIAdapter", 90 "GIOAdapter", 91 "TPUAdapter", 92 "Anonymous" 93 }; 94 48 95 static arc_sbp *sbp = (arc_sbp *)PA2KA(0x1000); 49 96 static arc_func_vector_t *arc_entry; … … 75 122 } 76 123 124 static void arc_print_component(arc_component *c) 125 { 126 int i; 127 128 printf("%s: ",ctypes[c->type]); 129 for (i=0;i < c->identifier_len;i++) 130 putchar(c->identifier[i]); 131 putchar('\n'); 132 } 133 134 void arc_print_devices(void) 135 { 136 arc_component *c,*next; 137 138 if (!arc_enabled()) 139 return; 140 141 c = arc_entry->getchild(NULL); 142 while (c) { 143 arc_print_component(c); 144 next = arc_entry->getchild(c); 145 while (!next) { 146 next = arc_entry->getpeer(c); 147 if (!next) 148 c = arc_entry->getparent(c); 149 if (!c) 150 return; 151 } 152 c = next; 153 } 154 } 155 77 156 void arc_print_memory_map(void) 78 157 { 79 158 arc_memdescriptor_t *desc; 80 159 81 if (! sbp) {160 if (!arc_enabled()) { 82 161 printf("ARC not enabled.\n"); 83 162 return; -
arch/mips32/src/mips32.c
r72dde3a rc7a7656 84 84 console_init(); 85 85 arc_print_memory_map(); 86 arc_print_devices(); 86 87 } 87 88 -
doc/requirements
r72dde3a rc7a7656 42 42 43 43 HARDWARE REQUIREMENTS 44 o no real hardware supported44 o SGI Indy R4600 45 45 o msim emulated MIPS R4000 CPU (see mips) 46 46
Note:
See TracChangeset
for help on using the changeset viewer.