|
61 | 61 | #include <asm/io.h>
|
62 | 62 |
|
63 | 63 | #include <scsi/scsi.h>
|
64 |
| -#include <scsi/scsicam.h> /* needed for scsicam_bios_param */ |
65 | 64 | #include <scsi/scsi_cmnd.h>
|
66 | 65 | #include <scsi/scsi_device.h>
|
67 | 66 | #include <scsi/scsi_host.h>
|
@@ -1053,38 +1052,6 @@ static int dc395x_queue_command_lck(struct scsi_cmnd *cmd, void (*done)(struct s
|
1053 | 1052 |
|
1054 | 1053 | static DEF_SCSI_QCMD(dc395x_queue_command)
|
1055 | 1054 |
|
1056 |
| -/* |
1057 |
| - * Return the disk geometry for the given SCSI device. |
1058 |
| - */ |
1059 |
| -static int dc395x_bios_param(struct scsi_device *sdev, |
1060 |
| - struct block_device *bdev, sector_t capacity, int *info) |
1061 |
| -{ |
1062 |
| -#ifdef CONFIG_SCSI_DC395x_TRMS1040_TRADMAP |
1063 |
| - int heads, sectors, cylinders; |
1064 |
| - struct AdapterCtlBlk *acb; |
1065 |
| - int size = capacity; |
1066 |
| - |
1067 |
| - dprintkdbg(DBG_0, "dc395x_bios_param..............\n"); |
1068 |
| - acb = (struct AdapterCtlBlk *)sdev->host->hostdata; |
1069 |
| - heads = 64; |
1070 |
| - sectors = 32; |
1071 |
| - cylinders = size / (heads * sectors); |
1072 |
| - |
1073 |
| - if ((acb->gmode2 & NAC_GREATER_1G) && (cylinders > 1024)) { |
1074 |
| - heads = 255; |
1075 |
| - sectors = 63; |
1076 |
| - cylinders = size / (heads * sectors); |
1077 |
| - } |
1078 |
| - geom[0] = heads; |
1079 |
| - geom[1] = sectors; |
1080 |
| - geom[2] = cylinders; |
1081 |
| - return 0; |
1082 |
| -#else |
1083 |
| - return scsicam_bios_param(bdev, capacity, info); |
1084 |
| -#endif |
1085 |
| -} |
1086 |
| - |
1087 |
| - |
1088 | 1055 | static void dump_register_info(struct AdapterCtlBlk *acb,
|
1089 | 1056 | struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb)
|
1090 | 1057 | {
|
@@ -4622,7 +4589,6 @@ static struct scsi_host_template dc395x_driver_template = {
|
4622 | 4589 | .show_info = dc395x_show_info,
|
4623 | 4590 | .name = DC395X_BANNER " " DC395X_VERSION,
|
4624 | 4591 | .queuecommand = dc395x_queue_command,
|
4625 |
| - .bios_param = dc395x_bios_param, |
4626 | 4592 | .slave_alloc = dc395x_slave_alloc,
|
4627 | 4593 | .slave_destroy = dc395x_slave_destroy,
|
4628 | 4594 | .can_queue = DC395x_MAX_CAN_QUEUE,
|
|
0 commit comments