--- zzzz-none-000/linux-2.6.19.2/drivers/scsi/pcmcia/nsp_cs.c 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5505/linux-2.6.19.2/drivers/scsi/pcmcia/nsp_cs.c 2007-01-11 07:38:19.000000000 +0000 @@ -183,7 +183,7 @@ * Clenaup parameters and call done() functions. * You must be set SCpnt->result before call this function. */ -static void nsp_scsi_done(struct scsi_cmnd *SCpnt) +static void nsp_scsi_done(Scsi_Cmnd *SCpnt) { nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; @@ -192,8 +192,7 @@ SCpnt->scsi_done(SCpnt); } -static int nsp_queuecommand(struct scsi_cmnd *SCpnt, - void (*done)(struct scsi_cmnd *)) +static int nsp_queuecommand(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *)) { #ifdef NSP_DEBUG /*unsigned int host_id = SCpnt->device->host->this_id;*/ @@ -366,7 +365,7 @@ /* * Start selection phase */ -static int nsphw_start_selection(struct scsi_cmnd *SCpnt) +static int nsphw_start_selection(Scsi_Cmnd *SCpnt) { unsigned int host_id = SCpnt->device->host->this_id; unsigned int base = SCpnt->device->host->io_port; @@ -447,7 +446,7 @@ /* * setup synchronous data transfer mode */ -static int nsp_analyze_sdtr(struct scsi_cmnd *SCpnt) +static int nsp_analyze_sdtr(Scsi_Cmnd *SCpnt) { unsigned char target = scmd_id(SCpnt); // unsigned char lun = SCpnt->device->lun; @@ -505,7 +504,7 @@ /* * start ninja hardware timer */ -static void nsp_start_timer(struct scsi_cmnd *SCpnt, int time) +static void nsp_start_timer(Scsi_Cmnd *SCpnt, int time) { unsigned int base = SCpnt->device->host->io_port; nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; @@ -518,8 +517,7 @@ /* * wait for bus phase change */ -static int nsp_negate_signal(struct scsi_cmnd *SCpnt, unsigned char mask, - char *str) +static int nsp_negate_signal(Scsi_Cmnd *SCpnt, unsigned char mask, char *str) { unsigned int base = SCpnt->device->host->io_port; unsigned char reg; @@ -546,9 +544,9 @@ /* * expect Ninja Irq */ -static int nsp_expect_signal(struct scsi_cmnd *SCpnt, - unsigned char current_phase, - unsigned char mask) +static int nsp_expect_signal(Scsi_Cmnd *SCpnt, + unsigned char current_phase, + unsigned char mask) { unsigned int base = SCpnt->device->host->io_port; int time_out; @@ -581,7 +579,7 @@ /* * transfer SCSI message */ -static int nsp_xfer(struct scsi_cmnd *SCpnt, int phase) +static int nsp_xfer(Scsi_Cmnd *SCpnt, int phase) { unsigned int base = SCpnt->device->host->io_port; nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; @@ -621,7 +619,7 @@ /* * get extra SCSI data from fifo */ -static int nsp_dataphase_bypass(struct scsi_cmnd *SCpnt) +static int nsp_dataphase_bypass(Scsi_Cmnd *SCpnt) { nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; unsigned int count; @@ -653,7 +651,7 @@ /* * accept reselection */ -static int nsp_reselected(struct scsi_cmnd *SCpnt) +static int nsp_reselected(Scsi_Cmnd *SCpnt) { unsigned int base = SCpnt->device->host->io_port; unsigned int host_id = SCpnt->device->host->this_id; @@ -692,7 +690,7 @@ /* * count how many data transferd */ -static int nsp_fifo_count(struct scsi_cmnd *SCpnt) +static int nsp_fifo_count(Scsi_Cmnd *SCpnt) { unsigned int base = SCpnt->device->host->io_port; unsigned int count; @@ -719,7 +717,7 @@ /* * read data in DATA IN phase */ -static void nsp_pio_read(struct scsi_cmnd *SCpnt) +static void nsp_pio_read(Scsi_Cmnd *SCpnt) { unsigned int base = SCpnt->device->host->io_port; unsigned long mmio_base = SCpnt->device->host->base; @@ -814,7 +812,7 @@ /* * write data in DATA OUT phase */ -static void nsp_pio_write(struct scsi_cmnd *SCpnt) +static void nsp_pio_write(Scsi_Cmnd *SCpnt) { unsigned int base = SCpnt->device->host->io_port; unsigned long mmio_base = SCpnt->device->host->base; @@ -907,7 +905,7 @@ /* * setup synchronous/asynchronous data transfer mode */ -static int nsp_nexus(struct scsi_cmnd *SCpnt) +static int nsp_nexus(Scsi_Cmnd *SCpnt) { unsigned int base = SCpnt->device->host->io_port; unsigned char target = scmd_id(SCpnt); @@ -954,7 +952,7 @@ { unsigned int base; unsigned char irq_status, irq_phase, phase; - struct scsi_cmnd *tmpSC; + Scsi_Cmnd *tmpSC; unsigned char target, lun; unsigned int *sync_neg; int i, tmp; @@ -1532,7 +1530,7 @@ /*---------------------------------------------------------------*/ /* -static int nsp_eh_abort(struct scsi_cmnd *SCpnt) +static int nsp_eh_abort(Scsi_Cmnd *SCpnt) { nsp_dbg(NSP_DEBUG_BUSRESET, "SCpnt=0x%p", SCpnt); @@ -1560,7 +1558,7 @@ return SUCCESS; } -static int nsp_eh_bus_reset(struct scsi_cmnd *SCpnt) +static int nsp_eh_bus_reset(Scsi_Cmnd *SCpnt) { nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; @@ -1569,7 +1567,7 @@ return nsp_bus_reset(data); } -static int nsp_eh_host_reset(struct scsi_cmnd *SCpnt) +static int nsp_eh_host_reset(Scsi_Cmnd *SCpnt) { nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata;