Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreinfo project. |
| 3 | * |
| 4 | * Copyright (C) 2008 Advanced Micro Devices, Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | */ |
| 19 | |
| 20 | #include "coreinfo.h" |
| 21 | |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 22 | #define SCREEN_Y 25 |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 23 | #define SCREEN_X 80 |
| 24 | |
Uwe Hermann | 29413c7 | 2008-05-21 13:49:03 +0000 | [diff] [blame] | 25 | #define KEY_ESC 27 |
| 26 | |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 27 | extern struct coreinfo_module cpuinfo_module; |
| 28 | extern struct coreinfo_module pci_module; |
| 29 | extern struct coreinfo_module coreboot_module; |
Uwe Hermann | ab5b3e0 | 2008-03-31 20:30:18 +0000 | [diff] [blame] | 30 | extern struct coreinfo_module nvram_module; |
Uwe Hermann | 0ab8cdd | 2008-04-22 20:19:53 +0000 | [diff] [blame] | 31 | extern struct coreinfo_module bootlog_module; |
Uwe Hermann | 2fbbb29 | 2008-07-08 16:18:38 +0000 | [diff] [blame] | 32 | extern struct coreinfo_module ramdump_module; |
Jordan Crouse | aa6e378 | 2008-05-07 20:43:15 +0000 | [diff] [blame] | 33 | extern struct coreinfo_module lar_module; |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 34 | |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 35 | struct coreinfo_module *system_modules[] = { |
Uwe Hermann | ab5b3e0 | 2008-03-31 20:30:18 +0000 | [diff] [blame] | 36 | #ifdef CONFIG_MODULE_CPUINFO |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 37 | &cpuinfo_module, |
Uwe Hermann | ab5b3e0 | 2008-03-31 20:30:18 +0000 | [diff] [blame] | 38 | #endif |
| 39 | #ifdef CONFIG_MODULE_PCI |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 40 | &pci_module, |
Uwe Hermann | ab5b3e0 | 2008-03-31 20:30:18 +0000 | [diff] [blame] | 41 | #endif |
Jordan Crouse | 7ce2666 | 2008-05-06 22:00:55 +0000 | [diff] [blame] | 42 | #ifdef CONFIG_MODULE_NVRAM |
| 43 | &nvram_module, |
| 44 | #endif |
Uwe Hermann | 2fbbb29 | 2008-07-08 16:18:38 +0000 | [diff] [blame] | 45 | #ifdef CONFIG_MODULE_RAMDUMP |
| 46 | &ramdump_module, |
| 47 | #endif |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 48 | }; |
| 49 | |
| 50 | struct coreinfo_module *coreboot_modules[] = { |
| 51 | #ifdef CONFIG_MODULE_COREBOOT |
| 52 | &coreboot_module, |
| 53 | #endif |
Uwe Hermann | 0ab8cdd | 2008-04-22 20:19:53 +0000 | [diff] [blame] | 54 | #ifdef CONFIG_MODULE_BOOTLOG |
| 55 | &bootlog_module, |
| 56 | #endif |
Jordan Crouse | aa6e378 | 2008-05-07 20:43:15 +0000 | [diff] [blame] | 57 | #ifdef CONFIG_MODULE_LAR |
| 58 | &lar_module |
| 59 | #endif |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 60 | }; |
| 61 | |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 62 | struct coreinfo_cat { |
| 63 | char name[15]; |
| 64 | int cur; |
| 65 | int count; |
| 66 | struct coreinfo_module **modules; |
| 67 | } categories[] = { |
| 68 | { |
| 69 | .name = "System", |
| 70 | .modules = system_modules, |
| 71 | .count = ARRAY_SIZE(system_modules), |
| 72 | }, |
| 73 | { |
| 74 | .name = "Coreboot", |
| 75 | .modules = coreboot_modules, |
| 76 | .count = ARRAY_SIZE(coreboot_modules), |
| 77 | } |
| 78 | }; |
| 79 | |
Uwe Hermann | 695cff3 | 2008-08-07 14:35:39 +0000 | [diff] [blame] | 80 | static WINDOW *modwin, *menuwin; |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 81 | static int curwin; |
| 82 | |
| 83 | void print_module_title(WINDOW *win, const char *title) |
| 84 | { |
| 85 | int i; |
| 86 | |
| 87 | wattrset(win, COLOR_PAIR(2)); |
| 88 | mvwprintw(win, 0, 1, title); |
| 89 | |
| 90 | wmove(win, 1, 1); |
Uwe Hermann | 3a406fe | 2008-03-20 01:11:28 +0000 | [diff] [blame] | 91 | for (i = 0; i < 78; i++) |
Ulf Jordan | d133d9a | 2008-08-11 20:35:32 +0000 | [diff] [blame] | 92 | waddch(win, ACS_HLINE); |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 93 | } |
| 94 | |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 95 | static void print_submenu(struct coreinfo_cat *cat) |
| 96 | { |
| 97 | int i, j; |
| 98 | char menu[80]; |
| 99 | char *ptr = menu; |
| 100 | |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 101 | wmove(menuwin, 0, 0); |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 102 | |
| 103 | for (j = 0; j < SCREEN_X; j++) |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 104 | waddch(menuwin, ' '); |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 105 | |
| 106 | if (!cat->count) |
| 107 | return; |
| 108 | |
| 109 | for (i = 0; i < cat->count; i++) |
Uwe Hermann | 695cff3 | 2008-08-07 14:35:39 +0000 | [diff] [blame] | 110 | ptr += sprintf(ptr, "[%c: %s] ", 'A' + i, |
| 111 | cat->modules[i]->name); |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 112 | |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 113 | mvwprintw(menuwin, 0, 0, menu); |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 114 | } |
| 115 | |
Jordan Crouse | 1933786 | 2008-05-06 22:15:31 +0000 | [diff] [blame] | 116 | #ifdef CONFIG_SHOW_DATE_TIME |
| 117 | static void print_time_and_date(void) |
| 118 | { |
| 119 | struct tm tm; |
| 120 | |
Uwe Hermann | 941aaee | 2008-07-18 14:08:18 +0000 | [diff] [blame] | 121 | while (nvram_updating()) |
Jordan Crouse | 1933786 | 2008-05-06 22:15:31 +0000 | [diff] [blame] | 122 | mdelay(10); |
| 123 | |
| 124 | rtc_read_clock(&tm); |
| 125 | |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 126 | mvwprintw(menuwin, 0, 57, "%02d/%02d/%04d - %02d:%02d:%02d", |
Uwe Hermann | 695cff3 | 2008-08-07 14:35:39 +0000 | [diff] [blame] | 127 | tm.tm_mon, tm.tm_mday, 1900 + tm.tm_year, tm.tm_hour, |
Uwe Hermann | 941aaee | 2008-07-18 14:08:18 +0000 | [diff] [blame] | 128 | tm.tm_min, tm.tm_sec); |
Jordan Crouse | 1933786 | 2008-05-06 22:15:31 +0000 | [diff] [blame] | 129 | } |
| 130 | #endif |
| 131 | |
Uwe Hermann | 0bfb5c4 | 2008-03-23 15:34:04 +0000 | [diff] [blame] | 132 | static void print_menu(void) |
Uwe Hermann | 3a406fe | 2008-03-20 01:11:28 +0000 | [diff] [blame] | 133 | { |
Uwe Hermann | 35845a2 | 2008-03-20 20:05:22 +0000 | [diff] [blame] | 134 | int i, j; |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 135 | char menu[80]; |
| 136 | char *ptr = menu; |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 137 | |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 138 | wmove(menuwin, 1, 0); |
Uwe Hermann | 3a406fe | 2008-03-20 01:11:28 +0000 | [diff] [blame] | 139 | for (j = 0; j < SCREEN_X; j++) |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 140 | waddch(menuwin, ' '); |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 141 | |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 142 | for (i = 0; i < ARRAY_SIZE(categories); i++) { |
| 143 | if (categories[i].count == 0) |
| 144 | continue; |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 145 | |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 146 | ptr += sprintf(ptr, "F%d: %s ", i + 1, categories[i].name); |
| 147 | } |
| 148 | |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 149 | mvwprintw(menuwin, 1, 0, menu); |
Uwe Hermann | ab5b3e0 | 2008-03-31 20:30:18 +0000 | [diff] [blame] | 150 | |
| 151 | #ifdef CONFIG_SHOW_DATE_TIME |
Jordan Crouse | 1933786 | 2008-05-06 22:15:31 +0000 | [diff] [blame] | 152 | print_time_and_date(); |
Uwe Hermann | ab5b3e0 | 2008-03-31 20:30:18 +0000 | [diff] [blame] | 153 | #endif |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 154 | } |
| 155 | |
Uwe Hermann | 0bfb5c4 | 2008-03-23 15:34:04 +0000 | [diff] [blame] | 156 | static void center(int row, const char *str) |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 157 | { |
Uwe Hermann | 695cff3 | 2008-08-07 14:35:39 +0000 | [diff] [blame] | 158 | int j, len = strlen(str); |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 159 | |
| 160 | wmove(stdscr, row, 0); |
Uwe Hermann | 3a406fe | 2008-03-20 01:11:28 +0000 | [diff] [blame] | 161 | for (j = 0; j < SCREEN_X; j++) |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 162 | waddch(stdscr, ' '); |
| 163 | |
| 164 | mvprintw(row, (SCREEN_X - len) / 2, str); |
| 165 | } |
| 166 | |
Uwe Hermann | 0bfb5c4 | 2008-03-23 15:34:04 +0000 | [diff] [blame] | 167 | /* FIXME: Currently unused. */ |
| 168 | #if 0 |
| 169 | static void header(int row, const char *str) |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 170 | { |
| 171 | char buf[SCREEN_X]; |
| 172 | char *ptr = buf; |
| 173 | int i; |
| 174 | int len = strlen(str) + 4; |
| 175 | |
Uwe Hermann | 3a406fe | 2008-03-20 01:11:28 +0000 | [diff] [blame] | 176 | for (i = 0; i < (SCREEN_X - len) / 2; i++) |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 177 | ptr += sprintf(ptr, "="); |
| 178 | |
| 179 | ptr += sprintf(ptr, "[ %s ]", str); |
| 180 | |
Uwe Hermann | 3a406fe | 2008-03-20 01:11:28 +0000 | [diff] [blame] | 181 | for (i = ((SCREEN_X - len) / 2) + len; i < SCREEN_X; i++) |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 182 | ptr += sprintf(ptr, "="); |
| 183 | |
| 184 | mvprintw(row, 0, buf); |
| 185 | } |
Uwe Hermann | 0bfb5c4 | 2008-03-23 15:34:04 +0000 | [diff] [blame] | 186 | #endif |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 187 | |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 188 | static void redraw_module(struct coreinfo_cat *cat) |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 189 | { |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 190 | if (cat->count == 0) |
Uwe Hermann | 6c44dfb | 2008-04-04 16:49:09 +0000 | [diff] [blame] | 191 | return; |
| 192 | |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 193 | wclear(modwin); |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 194 | cat->modules[cat->cur]->redraw(modwin); |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 195 | wrefresh(modwin); |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 196 | } |
| 197 | |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 198 | static void handle_category_key(struct coreinfo_cat *cat, int key) |
| 199 | { |
| 200 | if (key >= 'a' && key <= 'z') { |
| 201 | int index = key - 'a'; |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 202 | if (index < cat->count) { |
Uwe Hermann | 941aaee | 2008-07-18 14:08:18 +0000 | [diff] [blame] | 203 | cat->cur = index; |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 204 | redraw_module(cat); |
| 205 | return; |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | if (cat->count && cat->modules[cat->cur]->handle) { |
| 210 | if (cat->modules[cat->cur]->handle(key)) |
| 211 | redraw_module(cat); |
| 212 | } |
| 213 | } |
| 214 | |
Uwe Hermann | 0bfb5c4 | 2008-03-23 15:34:04 +0000 | [diff] [blame] | 215 | static void loop(void) |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 216 | { |
| 217 | int key; |
| 218 | |
Uwe Hermann | a70872cf | 2008-08-05 14:36:20 +0000 | [diff] [blame] | 219 | center(0, CONFIG_PAYLOAD_INFO_NAME " " CONFIG_PAYLOAD_INFO_VERSION); |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 220 | refresh(); |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 221 | |
| 222 | print_menu(); |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 223 | print_submenu(&categories[curwin]); |
| 224 | redraw_module(&categories[curwin]); |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 225 | |
Jordan Crouse | 1933786 | 2008-05-06 22:15:31 +0000 | [diff] [blame] | 226 | halfdelay(10); |
| 227 | |
Uwe Hermann | 3a406fe | 2008-03-20 01:11:28 +0000 | [diff] [blame] | 228 | while (1) { |
Jordan Crouse | 1933786 | 2008-05-06 22:15:31 +0000 | [diff] [blame] | 229 | #ifdef CONFIG_SHOW_DATE_TIME |
| 230 | print_time_and_date(); |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 231 | wrefresh(menuwin); |
Jordan Crouse | 1933786 | 2008-05-06 22:15:31 +0000 | [diff] [blame] | 232 | #endif |
| 233 | |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 234 | key = getch(); |
| 235 | |
| 236 | if (key == ERR) |
Uwe Hermann | 3a406fe | 2008-03-20 01:11:28 +0000 | [diff] [blame] | 237 | continue; |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 238 | |
| 239 | if (key >= KEY_F(1) && key <= KEY_F(9)) { |
| 240 | unsigned char ch = key - KEY_F(1); |
| 241 | |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 242 | if (ch <= ARRAY_SIZE(categories)) { |
| 243 | if (ch == ARRAY_SIZE(categories)) |
Uwe Hermann | 6c44dfb | 2008-04-04 16:49:09 +0000 | [diff] [blame] | 244 | continue; |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 245 | if (categories[ch].count == 0) |
| 246 | continue; |
| 247 | |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 248 | curwin = ch; |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 249 | print_submenu(&categories[curwin]); |
| 250 | redraw_module(&categories[curwin]); |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 251 | continue; |
| 252 | } |
| 253 | } |
| 254 | |
Uwe Hermann | 29413c7 | 2008-05-21 13:49:03 +0000 | [diff] [blame] | 255 | if (key == KEY_ESC) |
Jordan Crouse | 98cc056 | 2008-05-20 20:16:34 +0000 | [diff] [blame] | 256 | return; |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 257 | |
| 258 | handle_category_key(&categories[curwin], key); |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 259 | } |
| 260 | } |
| 261 | |
| 262 | int main(void) |
| 263 | { |
| 264 | int i, j; |
| 265 | |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 266 | initscr(); |
| 267 | |
| 268 | init_pair(1, COLOR_WHITE, COLOR_GREEN); |
| 269 | init_pair(2, COLOR_BLACK, COLOR_WHITE); |
| 270 | init_pair(3, COLOR_WHITE, COLOR_WHITE); |
| 271 | |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 272 | modwin = newwin(SCREEN_Y - 3, SCREEN_X, 1, 0); |
| 273 | menuwin = newwin(2, SCREEN_X, SCREEN_Y - 2, 0); |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 274 | |
| 275 | wattrset(stdscr, COLOR_PAIR(1) | A_BOLD); |
| 276 | wattrset(modwin, COLOR_PAIR(2)); |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 277 | wattrset(menuwin, COLOR_PAIR(1) | A_BOLD); |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 278 | |
Jordan Crouse | aa6e378 | 2008-05-07 20:43:15 +0000 | [diff] [blame] | 279 | for (i = 0; i < SCREEN_Y - 1; i++) { |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 280 | wmove(modwin, i - 1, 0); |
Uwe Hermann | 3a406fe | 2008-03-20 01:11:28 +0000 | [diff] [blame] | 281 | for (j = 0; j < SCREEN_X; j++) |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 282 | waddch(modwin, ' '); |
| 283 | } |
| 284 | |
Jordan Crouse | 9b1c7c1 | 2008-05-20 20:16:03 +0000 | [diff] [blame] | 285 | wrefresh(modwin); |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 286 | |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 287 | for (i = 0; i < ARRAY_SIZE(categories); i++) { |
Uwe Hermann | 941aaee | 2008-07-18 14:08:18 +0000 | [diff] [blame] | 288 | for (j = 0; j < categories[i].count; j++) |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 289 | categories[i].modules[j]->init(); |
Jordan Crouse | de7fc55 | 2008-05-06 22:03:16 +0000 | [diff] [blame] | 290 | } |
Uwe Hermann | 3a406fe | 2008-03-20 01:11:28 +0000 | [diff] [blame] | 291 | |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 292 | loop(); |
Uwe Hermann | 35845a2 | 2008-03-20 20:05:22 +0000 | [diff] [blame] | 293 | |
| 294 | return 0; |
Jordan Crouse | 7249f79 | 2008-03-20 00:11:05 +0000 | [diff] [blame] | 295 | } |
Jordan Crouse | 5083811 | 2008-05-27 20:07:47 +0000 | [diff] [blame] | 296 | |
Uwe Hermann | a70872cf | 2008-08-05 14:36:20 +0000 | [diff] [blame] | 297 | PAYLOAD_INFO(name, CONFIG_PAYLOAD_INFO_NAME); |
| 298 | PAYLOAD_INFO(listname, CONFIG_PAYLOAD_INFO_LISTNAME); |
| 299 | PAYLOAD_INFO(desc, CONFIG_PAYLOAD_INFO_DESC); |