patch-2.2.7 linux/drivers/cdrom/optcd.c
Next file: linux/drivers/char/Makefile
Previous file: linux/drivers/block/rd.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Sat Apr 24 17:49:37 1999
- Orig file:
v2.2.6/linux/drivers/cdrom/optcd.c
- Orig date:
Wed Aug 26 11:37:36 1998
diff -u --recursive --new-file v2.2.6/linux/drivers/cdrom/optcd.c linux/drivers/cdrom/optcd.c
@@ -100,6 +100,10 @@
#else
#define DEBUG(x)
#endif
+
+static int blksize = 2048;
+static int hsecsize = 2048;
+
/* Drive hardware/firmware characteristics
Identifiers in accordance with Optics Storage documentation */
@@ -2061,6 +2065,8 @@
return -EIO;
}
+ hardsect_size[MAJOR_NR] = &hsecsize;
+ blksize_size[MAJOR_NR] = &blksize;
blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST;
read_ahead[MAJOR_NR] = 4;
request_region(optcd_port, 4, "optcd");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)