1 --- linux-2.4.22/drivers/scsi/sd.c~ 2005-12-13 06:04:08.000000000 +1030
2 +++ linux-2.4.22/drivers/scsi/sd.c 2005-12-13 10:08:13.912932696 +1030
4 rscsi_disks[i].capacity >>= 1;
6 // add by super, moified by pete
8 if (rscsi_disks[i].device->removable){
9 if(0x32 == rscsi_disks[i].device->host->hostt->port){
10 printk("is removable disk \n");
16 printk("%x port connect!!!!!\n",rscsi_disks[i].device->host->hostt->port);
17 if(0x32 == rscsi_disks[i].device->host->hostt->port){
18 *IXP425_GPIO_GPOUTR &= 0xfffb;
29 @@ -1682,22 +1686,28 @@
31 if(port2_attached == 0)
32 *IXP425_GPIO_GPOUTR |= 0x8;
34 if(SDp->removable == 1){
35 sprintf(flash, "flash_sd%c", 'a' + i);
36 remove_proc_entry(flash, NULL);
37 remove_proc_entry(media, NULL);
40 sprintf(hdd, "hdd_sd%c", 'a' + i);
41 remove_proc_entry(hdd,NULL);
42 remove_proc_entry(media, NULL);
48 *IXP425_GPIO_GPOUTR |= 0x4;
50 if(SDp->removable == 1){
51 remove_proc_entry("flash_sda",NULL);
55 remove_proc_entry("hdd_sda",NULL);