[BACK]Return to tacons.c CVS log [TXT][DIR] Up to [local] / funnyos / arch / testarm / dev

Diff for /funnyos/arch/testarm/dev/tacons.c between version 1.2 and 1.3

version 1.2, 2007/10/16 21:28:24 version 1.3, 2007/10/16 21:35:30
Line 29 
Line 29 
 tacons_attach(struct device *self, uint32_t loc, uint8_t flags)  tacons_attach(struct device *self, uint32_t loc, uint8_t flags)
 {  {
         struct tacons_dd *ddp = self->dv_devdata;          struct tacons_dd *ddp = self->dv_devdata;
         struct consoleops *cop = &ddp->td_consops;          struct fcons_handle *fhp = &ddp->td_consops;
   
         /* aquire bus handle from parent */          /* aquire bus handle from parent */
         ddp->td_bhp = self->dv_parent->dv_aux;          ddp->td_bhp = self->dv_parent->dv_aux;
Line 37 
Line 37 
         /* all reads/writes will use this addr; in testarm cons this is the same addr for getc/putc */          /* all reads/writes will use this addr; in testarm cons this is the same addr for getc/putc */
         ddp->td_ioaddr = loc;          ddp->td_ioaddr = loc;
   
         /* we export struct consoleops */          /* we export struct fcons_handle */
         cop->getc = tacons_getc;          fhp->getc = tacons_getc;
         cop->putc = tacons_putc;          fhp->putc = tacons_putc;
   
         self->dv_aux = cop;          self->dv_aux = fhp;
   
         printf("testarm simple console (non-blocking, halt)\n");          printf("testarm simple console (non-blocking, halt)\n");
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

CVSweb