Diff for /src/sys/dev/video/bktr/bktr_os.c between versions 1.9 and 1.10

version 1.9, 2004/05/15 17:54:12 version 1.10, 2004/05/19 22:52:52
Line 363  bktr_attach( device_t dev ) Line 363  bktr_attach( device_t dev )
         common_bktr_attach( bktr, unit, fun, rev );          common_bktr_attach( bktr, unit, fun, rev );
   
         /* make the device entries */          /* make the device entries */
         bktr->bktrdev = make_dev(&bktr_cdevsw, unit,              cdevsw_add(&bktr_cdevsw, 0x0f, unit);
                                 0, 0, 0444, "bktr%d",  unit);          make_dev(&bktr_cdevsw, unit,    0, 0, 0444, "bktr%d",  unit);
         bktr->tunerdev= make_dev(&bktr_cdevsw, unit+16,          make_dev(&bktr_cdevsw, unit+16, 0, 0, 0444, "tuner%d", unit);
                                 0, 0, 0444, "tuner%d", unit);          make_dev(&bktr_cdevsw, unit+32, 0, 0, 0444, "vbi%d"  , unit);
         bktr->vbidev  = make_dev(&bktr_cdevsw, unit+32,  
                                 0, 0, 0444, "vbi%d"  , unit);  
   
   
         return 0;          return 0;
Line 413  bktr_detach( device_t dev ) Line 411  bktr_detach( device_t dev )
         /* The memory is retained by the bktr_mem module so we can unload and */          /* The memory is retained by the bktr_mem module so we can unload and */
         /* then reload the main bktr driver module */          /* then reload the main bktr driver module */
   
         /* Unregister the /dev/bktrN, tunerN and vbiN devices,          /* removing the cdevsw automatically destroys all related devices */
          * the aliases for unit 0 are automatically destroyed */          cdevsw_remove(&bktr_cdevsw, 0x0f, device_get_unit(dev));
         destroy_dev(bktr->vbidev);  
         destroy_dev(bktr->tunerdev);  
         destroy_dev(bktr->bktrdev);  
   
         /*          /*
          * Deallocate resources.           * Deallocate resources.

Removed from v.1.9  
changed lines
  Added in v.1.10