Changes in / [467bf40:ab49a0d] in mainline
- Files:
-
- 2 deleted
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
.bzrignore
r467bf40 rab49a0d 52 52 ./uspace/app/ping/ping 53 53 ./uspace/app/redir/redir 54 ./uspace/app/sysinfo/sysinfo55 54 ./uspace/app/sbi/sbi 56 55 ./uspace/app/stats/stats -
boot/Makefile.common
r467bf40 rab49a0d 144 144 $(USPACE_PATH)/app/ping/ping \ 145 145 $(USPACE_PATH)/app/stats/stats \ 146 $(USPACE_PATH)/app/sysinfo/sysinfo \147 146 $(USPACE_PATH)/app/tasks/tasks \ 148 147 $(USPACE_PATH)/app/top/top \ -
kernel/arch/amd64/src/amd64.c
r467bf40 rab49a0d 199 199 void arch_post_smp_init(void) 200 200 { 201 /* Currently the only supported platform for amd64 is 'pc'. */202 static const char *platform = "pc";203 204 sysinfo_set_item_data("platform", NULL, (void *) platform,205 str_size(platform));206 207 201 #ifdef CONFIG_PC_KBD 208 202 /* -
kernel/arch/arm32/include/mach/integratorcp/integratorcp.h
r467bf40 rab49a0d 106 106 extern void icp_frame_init(void); 107 107 extern size_t icp_get_irq_count(void); 108 extern const char *icp_get_platform_name(void);109 108 110 109 extern struct arm_machine_ops icp_machine_ops; -
kernel/arch/arm32/include/mach/testarm/testarm.h
r467bf40 rab49a0d 74 74 extern void gxemul_frame_init(void); 75 75 extern size_t gxemul_get_irq_count(void); 76 extern const char *gxemul_get_platform_name(void);77 76 78 77 extern struct arm_machine_ops gxemul_machine_ops; -
kernel/arch/arm32/include/machine_func.h
r467bf40 rab49a0d 56 56 void (*machine_input_init)(void); 57 57 size_t (*machine_get_irq_count)(void); 58 const char *(*machine_get_platform_name)(void);59 58 }; 60 59 -
kernel/arch/arm32/src/mach/gta02/gta02.c
r467bf40 rab49a0d 71 71 static void gta02_input_init(void); 72 72 static size_t gta02_get_irq_count(void); 73 static const char *gta02_get_platform_name(void);74 73 75 74 static void gta02_timer_irq_init(void); … … 93 92 gta02_output_init, 94 93 gta02_input_init, 95 gta02_get_irq_count, 96 gta02_get_platform_name 94 gta02_get_irq_count 97 95 }; 98 96 … … 237 235 } 238 236 239 const char *gta02_get_platform_name(void)240 {241 return "gta02";242 }243 244 237 static void gta02_timer_irq_init(void) 245 238 { -
kernel/arch/arm32/src/mach/integratorcp/integratorcp.c
r467bf40 rab49a0d 65 65 icp_output_init, 66 66 icp_input_init, 67 icp_get_irq_count, 68 icp_get_platform_name 67 icp_get_irq_count 69 68 }; 70 69 … … 343 342 } 344 343 345 const char *icp_get_platform_name(void)346 {347 return "integratorcp";348 }349 350 344 /** @} 351 345 */ -
kernel/arch/arm32/src/mach/testarm/testarm.c
r467bf40 rab49a0d 65 65 gxemul_output_init, 66 66 gxemul_input_init, 67 gxemul_get_irq_count, 68 gxemul_get_platform_name 67 gxemul_get_irq_count 69 68 }; 70 69 … … 133 132 } 134 133 135 const char *gxemul_get_platform_name(void)136 {137 return "gxemul";138 }139 140 134 /** Starts gxemul Real Time Clock device, which asserts regular interrupts. 141 135 * -
kernel/arch/ia32/src/ia32.c
r467bf40 rab49a0d 157 157 void arch_post_smp_init(void) 158 158 { 159 /* Currently the only supported platform for ia32 is 'pc'. */160 static const char *platform = "pc";161 162 sysinfo_set_item_data("platform", NULL, (void *) platform,163 str_size(platform));164 165 159 #ifdef CONFIG_PC_KBD 166 160 /* -
kernel/arch/ia64/src/ia64.c
r467bf40 rab49a0d 147 147 void arch_post_smp_init(void) 148 148 { 149 static const char *platform;150 151 /* Set platform name. */152 #ifdef MACHINE_ski153 platform = "pc";154 #endif155 #ifdef MACHINE_i460GX156 platform = "i460GX";157 #endif158 sysinfo_set_item_data("platform", NULL, (void *) platform,159 str_size(platform));160 161 149 #ifdef MACHINE_ski 162 150 ski_instance_t *ski_instance = skiin_init(); -
kernel/arch/mips32/src/mips32.c
r467bf40 rab49a0d 168 168 void arch_post_smp_init(void) 169 169 { 170 static const char *platform;171 172 /* Set platform name. */173 #ifdef MACHINE_msim174 platform = "msim";175 #endif176 #ifdef MACHINE_bgxemul177 platform = "gxemul";178 #endif179 #ifdef MACHINE_lgxemul180 platform = "gxemul";181 #endif182 sysinfo_set_item_data("platform", NULL, (void *) platform,183 str_size(platform));184 185 170 #ifdef CONFIG_MIPS_KBD 186 171 /* -
kernel/arch/ppc32/src/ppc32.c
r467bf40 rab49a0d 249 249 void arch_post_smp_init(void) 250 250 { 251 /* Currently the only supported platform for ppc32 is 'mac'. */252 static const char *platform = "mac";253 254 sysinfo_set_item_data("platform", NULL, (void *) platform,255 str_size(platform));256 257 251 ofw_tree_walk_by_device_type("mac-io", macio_register, NULL); 258 252 } -
kernel/arch/sparc64/src/sun4u/sparc64.c
r467bf40 rab49a0d 50 50 #include <ddi/irq.h> 51 51 #include <str.h> 52 #include <sysinfo/sysinfo.h>53 52 54 53 memmap_t memmap; … … 112 111 void arch_post_smp_init(void) 113 112 { 114 /* Currently the only supported platform for sparc64/sun4u is 'sun4u'. */115 static const char *platform = "sun4u";116 117 sysinfo_set_item_data("platform", NULL, (void *) platform,118 str_size(platform));119 120 113 standalone_sparc64_console_init(); 121 114 } -
kernel/arch/sparc64/src/sun4v/sparc64.c
r467bf40 rab49a0d 52 52 #include <str.h> 53 53 #include <arch/drivers/niagara.h> 54 #include <sysinfo/sysinfo.h>55 54 56 55 memmap_t memmap; … … 110 109 void arch_post_smp_init(void) 111 110 { 112 /* Currently the only supported platform for sparc64/sun4v is 'sun4v'. */113 static const char *platform = "sun4v";114 115 sysinfo_set_item_data("platform", NULL, (void *) platform,116 str_size(platform));117 118 111 niagarain_init(); 119 112 } -
uspace/Makefile
r467bf40 rab49a0d 55 55 app/nettest2 \ 56 56 app/ping \ 57 app/sysinfo \58 57 srv/clip \ 59 58 srv/devmap \ -
uspace/drv/root/root.c
r467bf40 rab49a0d 47 47 #include <macros.h> 48 48 #include <inttypes.h> 49 #include <sysinfo.h>50 49 51 50 #include <driver.h> … … 56 55 57 56 #define PLATFORM_DEVICE_NAME "hw" 58 #define PLATFORM_DEVICE_MATCH_ID _FMT "platform/%s"57 #define PLATFORM_DEVICE_MATCH_ID STRING(UARCH) 59 58 #define PLATFORM_DEVICE_MATCH_SCORE 100 60 59 … … 101 100 static int add_platform_child(device_t *parent) 102 101 { 103 char *match_id;104 char *platform;105 size_t platform_size;106 int res;107 108 /* Get platform name from sysinfo. */109 110 platform = sysinfo_get_data("platform", &platform_size);111 if (platform == NULL) {112 printf(NAME ": Failed to obtain platform name.\n");113 return ENOENT;114 }115 116 /* Null-terminate string. */117 platform = realloc(platform, platform_size + 1);118 if (platform == NULL) {119 printf(NAME ": Memory allocation failed.\n");120 return ENOMEM;121 }122 123 platform[platform_size] = '\0';124 125 /* Construct match ID. */126 127 if (asprintf(&match_id, PLATFORM_DEVICE_MATCH_ID_FMT, platform) == -1) {128 printf(NAME ": Memory allocation failed.\n");129 return ENOMEM;130 }131 132 /* Add child. */133 134 102 printf(NAME ": adding new child for platform device.\n"); 135 103 printf(NAME ": device node is `%s' (%d %s)\n", PLATFORM_DEVICE_NAME, 136 PLATFORM_DEVICE_MATCH_SCORE, match_id); 137 138 res = child_device_register_wrapper(parent, PLATFORM_DEVICE_NAME, 139 match_id, PLATFORM_DEVICE_MATCH_SCORE, NULL); 104 PLATFORM_DEVICE_MATCH_SCORE, PLATFORM_DEVICE_MATCH_ID); 105 106 int res = child_device_register_wrapper(parent, PLATFORM_DEVICE_NAME, 107 PLATFORM_DEVICE_MATCH_ID, PLATFORM_DEVICE_MATCH_SCORE, 108 NULL); 140 109 141 110 return res; -
uspace/drv/rootpc/rootpc.c
r467bf40 rab49a0d 28 28 29 29 /** 30 * @defgroup root_pc PC platform driver.31 * @brief HelenOS PC platform driver.30 * @defgroup root_pc Root HW device driver for ia32 and amd64 platform. 31 * @brief HelenOS root HW device driver for ia32 and amd64 platform. 32 32 * @{ 33 33 */ … … 182 182 /* Register child devices. */ 183 183 if (!rootpc_add_children(dev)) { 184 printf(NAME ": failed to add child devices for PC platform.\n"); 184 printf(NAME ": failed to add child devices for platform " 185 "ia32.\n"); 185 186 } 186 187 … … 195 196 int main(int argc, char *argv[]) 196 197 { 197 printf(NAME ": HelenOS PC platformdriver\n");198 printf(NAME ": HelenOS rootpc device driver\n"); 198 199 root_pc_init(); 199 200 return driver_main(&rootpc_driver); -
uspace/drv/rootpc/rootpc.ma
r467bf40 rab49a0d 1 10 platform/pc 1 10 ia32 2 10 amd64
Note:
See TracChangeset
for help on using the changeset viewer.