33 printf(
"Registered Libraries:\n");
34 libptr = GetLoadcoreInternalData()->let_next;
39 memset(name, 0,
sizeof(name));
40 memcpy(name, libptr->name, 8);
41 printf(
" %-20s v%d.%d\n",name,
42 (libptr->version&0xff00)>>8,libptr->version&0xff);
43 libptr = libptr->prev;
55 printf(
"Loaded Modules:\n");
59 printf(
" %-40s v%d.%d (%d)\n",
info->name,
60 (
info->version&0xff00)>>8,(
info->version&0xff),
info->flags);
76 printf(
"Unable to find '%s's module info!\n",IOPMGR_IOMAN_IDENT);
83 printf(
"Known '%s' devices:\n",IOPMGR_IOMAN_IDENT);
85 for (i = 0; i < 16; i++) {
87 printf(
" %-10s: %-27s v%d.%d type:%08X\n",
88 devinfo_table[i]->name, devinfo_table[i]->desc,
89 (devinfo_table[i]->
version&0xff00)>>8,
90 (devinfo_table[i]->
version&0xff),
91 devinfo_table[i]->type);
106 printf(
"Unable to find '%s's module info!\n",IOPMGR_IOMANX_IDENT);
113 printf(
"Known '%s' devices:\n",IOPMGR_IOMANX_IDENT);
115 for (i = 0; i < 32; i++) {
116 if (devinfo_table[i])
117 printf(
" %-10s: %-28s v%d.%d type:%08X\n",
118 devinfo_table[i]->name, devinfo_table[i]->desc,
119 (devinfo_table[i]->
version&0xff00)>>8,
120 (devinfo_table[i]->
version&0xff),
121 devinfo_table[i]->type);
140 printf(
"filesystems found : %d\n",
count);
142 for (i=0;i<
count;i++)
144 printf(
" %02d : %-10s - ",i,bufptr);
147 case IOPMGR_DEVTYPE_IOMAN: printf(
"%s\n",IOPMGR_IOMAN_IDENT);
break;
148 case IOPMGR_DEVTYPE_IOMANX: printf(
"%s\n",IOPMGR_IOMANX_IDENT);
break;
149 default: printf(
"Invalid\n");
break;
151 bufptr += strlen(bufptr)+1;
163 if (!strcmp(
"modlist",command))
165 else if (!strcmp(
"iomanx",command))
170 else if (!strcmp(
"ioman",command))
175 else if (!strcmp(
"devices",command))
181 else if (!strcmp(
"libs",command))
183 else if (!strcmp(
"release",command))
185 else if (!strcmp(
"help",command))
187 printf(
"\nCommands are:\n modlist - List of Loaded Modules\n iomanx - List iomanx Devices\n ioman - List ioman Devices\n devices - List all Devices\n libs - List Registered Libraries\n release - release iopmgr lib if loaded\n help - This page\n");
189 else if (!strcmp(
"unreg",command))
193 printf(
"unregistering : '%s' - ",arg1);
196 case 0: printf(
"UnRegistered\n");
break;
197 case -1: printf(
"Failed to UnRegister\n");
break;
198 case -2: printf(
"Library Not Present\n");
break;
201 else printf(
"\nNo Library Specified\n");
203 else printf(
"\nUnknown Command , try 'help'\n");
void cmdline_handle(char *command, char *arg1)
void list_devices_iomanx()
int slib_release_library(const char *name)
void list_devices_ioman()
int iopmgr_get_devicelist(int man, int devtype, char *buffer)
void list_all_libraries()
void list_fs_devices(int mgrtype)
int iopmgr_get_devicetype(char *device)
int smod_get_next_mod(smod_mod_info_t *cur_mod, smod_mod_info_t *next_mod)
int smod_get_mod_by_name(const char *name, smod_mod_info_t *info)
u32 count
start sector of fragmented bd/file