1
2
3
4
5
6
7
8
9
10#include <common.h>
11#include <config.h>
12#include <command.h>
13#include <image.h>
14
15
16#undef FDC_DEBUG
17
18#ifdef FDC_DEBUG
19#define PRINTF(fmt,args...) printf (fmt ,##args)
20#else
21#define PRINTF(fmt,args...)
22#endif
23
24
25
26
27
28typedef struct {
29 int flags;
30 unsigned long blnr;
31 uchar drive;
32 uchar cmdlen;
33 uchar cmd[16];
34 uchar dma;
35 uchar result[11];
36 uchar resultlen;
37} FDC_COMMAND_STRUCT;
38
39
40
41
42
43
44
45
46
47
48
49
50
51#define COMMAND 0
52#define DRIVE 1
53#define CONFIG0 1
54#define SPEC_HUTSRT 1
55#define TRACK 2
56#define CONFIG1 2
57#define SPEC_HLT 2
58#define HEAD 3
59#define CONFIG2 3
60#define SECTOR 4
61#define SECTOR_SIZE 5
62#define LAST_TRACK 6
63#define GAP 7
64#define DTL 8
65
66#define STATUS_0 0
67#define STATUS_PCN 1
68#define STATUS_1 1
69#define STATUS_2 2
70#define STATUS_TRACK 3
71#define STATUS_HEAD 4
72#define STATUS_SECT 5
73#define STATUS_SECT_SIZE 6
74
75
76
77#define FDC_BASE 0x3F0
78#define FDC_SRA FDC_BASE + 0
79#define FDC_SRB FDC_BASE + 1
80#define FDC_DOR FDC_BASE + 2
81#define FDC_TDR FDC_BASE + 3
82#define FDC_DSR FDC_BASE + 4
83#define FDC_MSR FDC_BASE + 4
84#define FDC_FIFO FDC_BASE + 5
85#define FDC_DIR FDC_BASE + 6
86#define FDC_CCR FDC_BASE + 7
87
88#define FDC_CMD_SENSE_INT 0x08
89#define FDC_CMD_CONFIGURE 0x13
90#define FDC_CMD_SPECIFY 0x03
91#define FDC_CMD_RECALIBRATE 0x07
92#define FDC_CMD_READ 0x06
93#define FDC_CMD_READ_TRACK 0x02
94#define FDC_CMD_READ_ID 0x0A
95#define FDC_CMD_DUMP_REG 0x0E
96#define FDC_CMD_SEEK 0x0F
97
98#define FDC_CMD_SENSE_INT_LEN 0x01
99#define FDC_CMD_CONFIGURE_LEN 0x04
100#define FDC_CMD_SPECIFY_LEN 0x03
101#define FDC_CMD_RECALIBRATE_LEN 0x02
102#define FDC_CMD_READ_LEN 0x09
103#define FDC_CMD_READ_TRACK_LEN 0x09
104#define FDC_CMD_READ_ID_LEN 0x02
105#define FDC_CMD_DUMP_REG_LEN 0x01
106#define FDC_CMD_SEEK_LEN 0x03
107
108#define FDC_FIFO_THR 0x0C
109#define FDC_FIFO_DIS 0x00
110#define FDC_IMPLIED_SEEK 0x01
111#define FDC_POLL_DIS 0x00
112#define FDC_PRE_TRK 0x00
113#define FDC_CONFIGURE FDC_FIFO_THR | (FDC_POLL_DIS<<4) | (FDC_FIFO_DIS<<5) | (FDC_IMPLIED_SEEK << 6)
114#define FDC_MFM_MODE 0x01
115#define FDC_SKIP_MODE 0x00
116
117#define FDC_TIME_OUT 100000
118#define FDC_RW_RETRIES 3
119#define FDC_CAL_RETRIES 3
120
121
122
123typedef struct {
124 unsigned int size;
125 unsigned int sect;
126 unsigned int head;
127 unsigned int track;
128 unsigned int stretch;
129 unsigned char gap;
130 unsigned char rate;
131 unsigned char spec1;
132 unsigned char fmt_gap;
133 unsigned char hlt;
134 unsigned char sect_code;
135 const char * name;
136} FD_GEO_STRUCT;
137
138
139
140const static FD_GEO_STRUCT floppy_type[2] = {
141 { 2880,18,2,80,0,0x1B,0x00,0xCF,0x6C,16,2,"H1440" },
142 { 0, 0,0, 0,0,0x00,0x00,0x00,0x00, 0,0,NULL },
143};
144
145static FDC_COMMAND_STRUCT cmd;
146
147
148#ifndef CONFIG_SYS_FDC_DRIVE_NUMBER
149#define CONFIG_SYS_FDC_DRIVE_NUMBER 0
150#endif
151
152
153#ifndef CONFIG_SYS_ISA_IO_STRIDE
154#define CONFIG_SYS_ISA_IO_STRIDE 1
155#endif
156
157#ifndef CONFIG_SYS_ISA_IO_OFFSET
158#define CONFIG_SYS_ISA_IO_OFFSET 0
159#endif
160
161
162
163unsigned char read_fdc_reg(unsigned int addr)
164{
165 volatile unsigned char *val =
166 (volatile unsigned char *)(CONFIG_SYS_ISA_IO_BASE_ADDRESS +
167 (addr * CONFIG_SYS_ISA_IO_STRIDE) +
168 CONFIG_SYS_ISA_IO_OFFSET);
169
170 return val [0];
171}
172
173
174void write_fdc_reg(unsigned int addr, unsigned char val)
175{
176 volatile unsigned char *tmp =
177 (volatile unsigned char *)(CONFIG_SYS_ISA_IO_BASE_ADDRESS +
178 (addr * CONFIG_SYS_ISA_IO_STRIDE) +
179 CONFIG_SYS_ISA_IO_OFFSET);
180 tmp[0]=val;
181}
182
183
184int wait_for_fdc_int(void)
185{
186 unsigned long timeout;
187 timeout = FDC_TIME_OUT;
188 while((read_fdc_reg(FDC_SRA)&0x80)==0) {
189 timeout--;
190 udelay(10);
191 if(timeout==0)
192 return false;
193 }
194 return true;
195}
196
197
198
199int read_fdc_byte(void)
200{
201 unsigned long timeout;
202 timeout = FDC_TIME_OUT;
203 while((read_fdc_reg(FDC_MSR)&0xC0)!=0xC0) {
204
205 udelay(10);
206 timeout--;
207 if(timeout==0)
208 return -1;
209 }
210 return read_fdc_reg(FDC_FIFO);
211}
212
213
214
215int fdc_need_more_output(void)
216{
217 unsigned char c;
218 while((read_fdc_reg(FDC_MSR)&0xC0)==0xC0) {
219 c=(unsigned char)read_fdc_byte();
220 printf("Error: more output: %x\n",c);
221 }
222 return true;
223}
224
225
226
227
228int write_fdc_byte(unsigned char val)
229{
230 unsigned long timeout;
231 timeout = FDC_TIME_OUT;
232 while((read_fdc_reg(FDC_MSR)&0xC0)!=0x80) {
233
234 timeout--;
235 udelay(10);
236 fdc_need_more_output();
237 if(timeout==0)
238 return false;
239 }
240 write_fdc_reg(FDC_FIFO,val);
241 return true;
242}
243
244
245
246
247
248int fdc_issue_cmd(FDC_COMMAND_STRUCT *pCMD,FD_GEO_STRUCT *pFG)
249{
250 int i;
251 unsigned long head,track,sect,timeout;
252 track = pCMD->blnr / (pFG->sect * pFG->head);
253 sect = pCMD->blnr % (pFG->sect * pFG->head);
254 head = sect / pFG->sect;
255 sect = sect % pFG->sect;
256 sect++;
257 PRINTF("Cmd 0x%02x Track %ld, Head %ld, Sector %ld, Drive %d (blnr %ld)\n",
258 pCMD->cmd[0],track,head,sect,pCMD->drive,pCMD->blnr);
259
260 if(head|=0) {
261 pCMD->cmd[DRIVE]=pCMD->drive | 0x04;
262 pCMD->cmd[HEAD]=(unsigned char) head;
263 }
264 else {
265 pCMD->cmd[DRIVE]=pCMD->drive;
266 pCMD->cmd[HEAD]=(unsigned char) head;
267 }
268 pCMD->cmd[TRACK]=(unsigned char) track;
269 switch (pCMD->cmd[COMMAND]) {
270 case FDC_CMD_READ:
271 pCMD->cmd[SECTOR]=(unsigned char) sect;
272 pCMD->cmd[SECTOR_SIZE]=pFG->sect_code;
273 pCMD->cmd[LAST_TRACK]=pFG->sect;
274 pCMD->cmd[GAP]=pFG->gap;
275 pCMD->cmd[DTL]=0xFF;
276 pCMD->cmdlen=FDC_CMD_READ_LEN;
277 pCMD->cmd[COMMAND]|=(FDC_MFM_MODE<<6);
278 pCMD->cmd[COMMAND]|=(FDC_SKIP_MODE<<5);
279 pCMD->resultlen=0;
280 break;
281 case FDC_CMD_SEEK:
282 pCMD->cmdlen=FDC_CMD_SEEK_LEN;
283 pCMD->resultlen=0;
284 break;
285 case FDC_CMD_CONFIGURE:
286 pCMD->cmd[CONFIG0]=0;
287 pCMD->cmd[CONFIG1]=FDC_CONFIGURE;
288 pCMD->cmd[CONFIG2]=FDC_PRE_TRK;
289 pCMD->cmdlen=FDC_CMD_CONFIGURE_LEN;
290 pCMD->resultlen=0;
291 break;
292 case FDC_CMD_SPECIFY:
293 pCMD->cmd[SPEC_HUTSRT]=pFG->spec1;
294 pCMD->cmd[SPEC_HLT]=(pFG->hlt)<<1;
295 if(pCMD->dma==0)
296 pCMD->cmd[SPEC_HLT]|=0x1;
297 pCMD->cmdlen=FDC_CMD_SPECIFY_LEN;
298 pCMD->resultlen=0;
299 break;
300 case FDC_CMD_DUMP_REG:
301 pCMD->cmdlen=FDC_CMD_DUMP_REG_LEN;
302 pCMD->resultlen=10;
303 break;
304 case FDC_CMD_READ_ID:
305 pCMD->cmd[COMMAND]|=(FDC_MFM_MODE<<6);
306 pCMD->cmdlen=FDC_CMD_READ_ID_LEN;
307 pCMD->resultlen=7;
308 break;
309 case FDC_CMD_RECALIBRATE:
310 pCMD->cmd[DRIVE]&=0x03;
311 pCMD->cmdlen=FDC_CMD_RECALIBRATE_LEN;
312 pCMD->resultlen=0;
313 break;
314 break;
315 case FDC_CMD_SENSE_INT:
316 pCMD->cmdlen=FDC_CMD_SENSE_INT_LEN;
317 pCMD->resultlen=2;
318 break;
319 }
320 for(i=0;i<pCMD->cmdlen;i++) {
321
322 if (write_fdc_byte(pCMD->cmd[i]) == false) {
323 PRINTF("Error: timeout while issue cmd%d\n",i);
324 return false;
325 }
326 }
327 timeout=FDC_TIME_OUT;
328 for(i=0;i<pCMD->resultlen;i++) {
329 while((read_fdc_reg(FDC_MSR)&0xC0)!=0xC0) {
330 timeout--;
331 if(timeout==0) {
332 PRINTF(" timeout while reading result%d MSR=0x%02X\n",i,read_fdc_reg(FDC_MSR));
333 return false;
334 }
335 }
336 pCMD->result[i]=(unsigned char)read_fdc_byte();
337 }
338 return true;
339}
340
341
342
343void select_fdc_drive(FDC_COMMAND_STRUCT *pCMD)
344{
345 unsigned char val;
346
347 val=(1<<(4+pCMD->drive))|pCMD->drive|0xC;
348 if((read_fdc_reg(FDC_DOR)&val)!=val) {
349 write_fdc_reg(FDC_DOR,val);
350 for(val=0;val<255;val++)
351 udelay(500);
352 }
353}
354
355
356void stop_fdc_drive(FDC_COMMAND_STRUCT *pCMD)
357{
358 unsigned char val;
359
360 val=(1<<(4+pCMD->drive))|pCMD->drive;
361 write_fdc_reg(FDC_DOR,(read_fdc_reg(FDC_DOR)&~val));
362}
363
364
365
366int fdc_recalibrate(FDC_COMMAND_STRUCT *pCMD,FD_GEO_STRUCT *pFG)
367{
368 pCMD->cmd[COMMAND]=FDC_CMD_RECALIBRATE;
369 if (fdc_issue_cmd(pCMD, pFG) == false)
370 return false;
371 while (wait_for_fdc_int() != true);
372
373 pCMD->cmd[COMMAND]=FDC_CMD_SENSE_INT;
374 return(fdc_issue_cmd(pCMD,pFG));
375}
376
377
378
379int fdc_seek(FDC_COMMAND_STRUCT *pCMD,FD_GEO_STRUCT *pFG)
380{
381 pCMD->cmd[COMMAND]=FDC_CMD_SEEK;
382 if (fdc_issue_cmd(pCMD, pFG) == false)
383 return false;
384 while (wait_for_fdc_int() != true);
385
386 pCMD->cmd[COMMAND]=FDC_CMD_SENSE_INT;
387 return(fdc_issue_cmd(pCMD,pFG));
388}
389
390
391
392int fdc_terminate(FDC_COMMAND_STRUCT *pCMD)
393{
394 int i;
395 for(i=0;i<100;i++)
396 udelay(500);
397 while((read_fdc_reg(FDC_SRA)&0x80)==0x00);
398 for(i=0;i<7;i++) {
399 pCMD->result[i]=(unsigned char)read_fdc_byte();
400 }
401 return true;
402}
403
404
405int fdc_read_data(unsigned char *buffer, unsigned long blocks,FDC_COMMAND_STRUCT *pCMD, FD_GEO_STRUCT *pFG)
406{
407
408 unsigned long len,readblk,i,timeout,ii,offset;
409 unsigned char c,retriesrw,retriescal;
410 unsigned char *bufferw;
411 int sect_size;
412 int flags;
413
414 flags=disable_interrupts();
415 select_fdc_drive(pCMD);
416 sect_size=0x080<<pFG->sect_code;
417 retriesrw=0;
418 retriescal=0;
419 offset=0;
420 if (fdc_seek(pCMD, pFG) == false) {
421 stop_fdc_drive(pCMD);
422 if (flags)
423 enable_interrupts();
424 return false;
425 }
426 if((pCMD->result[STATUS_0]&0x20)!=0x20) {
427 printf("Seek error Status: %02X\n",pCMD->result[STATUS_0]);
428 stop_fdc_drive(pCMD);
429 if (flags)
430 enable_interrupts();
431 return false;
432 }
433
434
435
436 readblk=pFG->sect-(pCMD->blnr%pFG->sect);
437 PRINTF("1st nr of block possible read %ld start %ld\n",readblk,pCMD->blnr);
438 if(readblk>blocks)
439 readblk=blocks;
440 PRINTF("we read %ld blocks start %ld\n",readblk,pCMD->blnr);
441 bufferw = &buffer[0];
442 do {
443retryrw:
444 len=sect_size * readblk;
445 pCMD->cmd[COMMAND]=FDC_CMD_READ;
446 if (fdc_issue_cmd(pCMD, pFG) == false) {
447 stop_fdc_drive(pCMD);
448 if (flags)
449 enable_interrupts();
450 return false;
451 }
452 for (i=0;i<len;i++) {
453 timeout=FDC_TIME_OUT;
454 do {
455 c=read_fdc_reg(FDC_MSR);
456 if((c&0xC0)==0xC0) {
457 bufferw[i]=read_fdc_reg(FDC_FIFO);
458 break;
459 }
460 if((c&0xC0)==0x80) {
461 PRINTF("Transfer error transferred: at %ld, MSR=%02X\n",i,c);
462 if(i>6) {
463 for(ii=0;ii<7;ii++) {
464 pCMD->result[ii]=bufferw[(i-7+ii)];
465 }
466 }
467 if(retriesrw++>FDC_RW_RETRIES) {
468 if (retriescal++>FDC_CAL_RETRIES) {
469 stop_fdc_drive(pCMD);
470 if (flags)
471 enable_interrupts();
472 return false;
473 }
474 else {
475 PRINTF(" trying to recalibrate Try %d\n",retriescal);
476 if (fdc_recalibrate(pCMD, pFG) == false) {
477 stop_fdc_drive(pCMD);
478 if (flags)
479 enable_interrupts();
480 return false;
481 }
482 retriesrw=0;
483 goto retrycal;
484 }
485 }
486 else {
487 PRINTF("Read retry %d\n",retriesrw);
488 goto retryrw;
489 }
490 }
491 timeout--;
492 } while (true);
493 }
494
495
496 fdc_terminate(pCMD);
497 offset+=(sect_size*readblk);
498 bufferw = &buffer[offset];
499 pCMD->blnr+=readblk;
500 blocks-=readblk;
501 if(blocks==0)
502 break;
503
504
505 readblk=pFG->sect;
506 if(readblk>blocks)
507 readblk=blocks;
508retrycal:
509
510 if (fdc_seek(pCMD, pFG) == false) {
511 stop_fdc_drive(pCMD);
512 if (flags)
513 enable_interrupts();
514 return false;
515 }
516 if((pCMD->result[STATUS_0]&0x20)!=0x20) {
517 PRINTF("Seek error Status: %02X\n",pCMD->result[STATUS_0]);
518 stop_fdc_drive(pCMD);
519 return false;
520 }
521 } while (true);
522 stop_fdc_drive(pCMD);
523 if (flags)
524 enable_interrupts();
525 return true;
526}
527
528
529int fdc_check_drive(FDC_COMMAND_STRUCT *pCMD, FD_GEO_STRUCT *pFG)
530{
531 int i,drives,state;
532
533
534 state=0;
535 for(drives=0;drives<4;drives++) {
536 pCMD->drive=drives;
537 select_fdc_drive(pCMD);
538 pCMD->blnr=0;
539 if (fdc_recalibrate(pCMD, pFG) == false)
540 continue;
541 if((pCMD->result[STATUS_0]&0x10)==0x10)
542 continue;
543
544 state|=(1<<drives);
545 pCMD->blnr=pFG->size;
546 if (fdc_seek(pCMD, pFG) == false)
547 continue;
548 pCMD->blnr=0;
549 if (fdc_recalibrate(pCMD, pFG) == false)
550 continue;
551 pCMD->cmd[COMMAND]=FDC_CMD_READ_ID;
552 if (fdc_issue_cmd(pCMD, pFG) == false)
553 continue;
554 state|=(0x10<<drives);
555 }
556 stop_fdc_drive(pCMD);
557 for(i=0;i<4;i++) {
558 PRINTF("Floppy Drive %d %sconnected %sDisk inserted %s\n",i,
559 ((state&(1<<i))==(1<<i)) ? "":"not ",
560 ((state&(0x10<<i))==(0x10<<i)) ? "":"no ",
561 ((state&(0x10<<i))==(0x10<<i)) ? pFG->name : "");
562 }
563 pCMD->flags=state;
564 return true;
565}
566
567
568
569
570
571
572
573int fdc_setup(int drive, FDC_COMMAND_STRUCT *pCMD, FD_GEO_STRUCT *pFG)
574{
575 int i;
576
577#ifdef CONFIG_SYS_FDC_HW_INIT
578 fdc_hw_init ();
579#endif
580
581 write_fdc_reg(FDC_DOR,0x00);
582 for(i=0; i<255; i++)
583 udelay(500);
584
585 pCMD->drive=drive;
586 select_fdc_drive(pCMD);
587
588 write_fdc_reg(FDC_CCR,pFG->rate);
589
590 write_fdc_reg(FDC_DSR,pFG->rate);
591 if (wait_for_fdc_int() == false) {
592 PRINTF("Time Out after writing CCR\n");
593 return false;
594 }
595
596
597 pCMD->dma=0;
598 for(i=0;i<4;i++) {
599
600 pCMD->cmd[COMMAND]=FDC_CMD_SENSE_INT;
601 if (fdc_issue_cmd(pCMD, pFG) == false) {
602 PRINTF("Sense Interrupt for drive %d failed\n",i);
603 }
604 }
605
606 pCMD->drive=drive;
607 select_fdc_drive(pCMD);
608 pCMD->cmd[COMMAND]=FDC_CMD_CONFIGURE;
609 if (fdc_issue_cmd(pCMD, pFG) == false) {
610 PRINTF(" configure timeout\n");
611 stop_fdc_drive(pCMD);
612 return false;
613 }
614
615 pCMD->cmd[COMMAND]=FDC_CMD_SPECIFY;
616 if (fdc_issue_cmd(pCMD, pFG) == false) {
617 PRINTF(" specify timeout\n");
618 stop_fdc_drive(pCMD);
619 return false;
620
621 }
622
623
624
625
626 return true;
627}
628
629
630
631
632int do_fdcboot (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
633{
634 FD_GEO_STRUCT *pFG = (FD_GEO_STRUCT *)floppy_type;
635 FDC_COMMAND_STRUCT *pCMD = &cmd;
636 unsigned long addr,imsize;
637#if defined(CONFIG_LEGACY_IMAGE_FORMAT)
638 image_header_t *hdr;
639#endif
640 unsigned char boot_drive;
641 int i,nrofblk;
642#if defined(CONFIG_FIT)
643 const void *fit_hdr = NULL;
644#endif
645
646 switch (argc) {
647 case 1:
648 addr = CONFIG_SYS_LOAD_ADDR;
649 boot_drive=CONFIG_SYS_FDC_DRIVE_NUMBER;
650 break;
651 case 2:
652 addr = simple_strtoul(argv[1], NULL, 16);
653 boot_drive=CONFIG_SYS_FDC_DRIVE_NUMBER;
654 break;
655 case 3:
656 addr = simple_strtoul(argv[1], NULL, 16);
657 boot_drive=simple_strtoul(argv[2], NULL, 10);
658 break;
659 default:
660 return CMD_RET_USAGE;
661 }
662
663 if (fdc_setup(boot_drive, pCMD, pFG) == false) {
664 printf("\n** Error in setup FDC **\n");
665 return 1;
666 }
667 if (fdc_check_drive(pCMD, pFG) == false) {
668 printf("\n** Error in check_drives **\n");
669 return 1;
670 }
671 if((pCMD->flags&(1<<boot_drive))==0) {
672
673 printf("\n** Drive %d not availabe **\n",boot_drive);
674 return 1;
675 }
676 if((pCMD->flags&(0x10<<boot_drive))==0) {
677
678 printf("\n** No disk inserted in drive %d **\n",boot_drive);
679 return 1;
680 }
681
682 pCMD->drive=boot_drive;
683
684 pCMD->blnr=0;
685 if (fdc_read_data((unsigned char *)addr, 1, pCMD, pFG) == false) {
686 printf("\nRead error:");
687 for(i=0;i<7;i++)
688 printf("result%d: 0x%02X\n",i,pCMD->result[i]);
689 return 1;
690 }
691
692 switch (genimg_get_format ((void *)addr)) {
693#if defined(CONFIG_LEGACY_IMAGE_FORMAT)
694 case IMAGE_FORMAT_LEGACY:
695 hdr = (image_header_t *)addr;
696 image_print_contents (hdr);
697
698 imsize = image_get_image_size (hdr);
699 break;
700#endif
701#if defined(CONFIG_FIT)
702 case IMAGE_FORMAT_FIT:
703 fit_hdr = (const void *)addr;
704 puts ("Fit image detected...\n");
705
706 imsize = fit_get_size (fit_hdr);
707 break;
708#endif
709 default:
710 puts ("** Unknown image type\n");
711 return 1;
712 }
713
714 nrofblk=imsize/512;
715 if((imsize%512)>0)
716 nrofblk++;
717 printf("Loading %ld Bytes (%d blocks) at 0x%08lx..\n",imsize,nrofblk,addr);
718 pCMD->blnr=0;
719 if (fdc_read_data((unsigned char *)addr, nrofblk, pCMD, pFG) == false) {
720
721 printf("\nRead error:");
722 for(i=0;i<7;i++)
723 printf("result%d: 0x%02X\n",i,pCMD->result[i]);
724 return 1;
725 }
726 printf("OK %ld Bytes loaded.\n",imsize);
727
728 flush_cache (addr, imsize);
729
730#if defined(CONFIG_FIT)
731
732 if (genimg_get_format ((void *)addr) == IMAGE_FORMAT_FIT) {
733 if (!fit_check_format (fit_hdr)) {
734 puts ("** Bad FIT image format\n");
735 return 1;
736 }
737 fit_print_contents (fit_hdr);
738 }
739#endif
740
741
742 load_addr = addr;
743
744 return bootm_maybe_autostart(cmdtp, argv[0]);
745}
746
747U_BOOT_CMD(
748 fdcboot, 3, 1, do_fdcboot,
749 "boot from floppy device",
750 "loadAddr drive"
751);
752