gdrom.c (b7e56edba4b02f2079042c326a8cd72a44635817) gdrom.c (8a78362c4eefc1deddbefe2c7f38aabbc2429d6b)
1/* GD ROM driver for the SEGA Dreamcast
2 * copyright Adrian McMenamin, 2007
3 * With thanks to Marcus Comstedt and Nathan Keynes
4 * for work in reversing PIO and DMA
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 727 unchanged lines hidden (view full) ---

736 gd.disk->minors = 1;
737 strcpy(gd.disk->disk_name, GDROM_DEV_NAME);
738}
739
740static int __devinit probe_gdrom_setupqueue(void)
741{
742 blk_queue_logical_block_size(gd.gdrom_rq, GDROM_HARD_SECTOR);
743 /* using DMA so memory will need to be contiguous */
1/* GD ROM driver for the SEGA Dreamcast
2 * copyright Adrian McMenamin, 2007
3 * With thanks to Marcus Comstedt and Nathan Keynes
4 * for work in reversing PIO and DMA
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 727 unchanged lines hidden (view full) ---

736 gd.disk->minors = 1;
737 strcpy(gd.disk->disk_name, GDROM_DEV_NAME);
738}
739
740static int __devinit probe_gdrom_setupqueue(void)
741{
742 blk_queue_logical_block_size(gd.gdrom_rq, GDROM_HARD_SECTOR);
743 /* using DMA so memory will need to be contiguous */
744 blk_queue_max_hw_segments(gd.gdrom_rq, 1);
744 blk_queue_max_segments(gd.gdrom_rq, 1);
745 /* set a large max size to get most from DMA */
746 blk_queue_max_segment_size(gd.gdrom_rq, 0x40000);
747 gd.disk->queue = gd.gdrom_rq;
748 return gdrom_init_dma_mode();
749}
750
751/*
752 * register this as a block device and as compliant with the

--- 121 unchanged lines hidden ---
745 /* set a large max size to get most from DMA */
746 blk_queue_max_segment_size(gd.gdrom_rq, 0x40000);
747 gd.disk->queue = gd.gdrom_rq;
748 return gdrom_init_dma_mode();
749}
750
751/*
752 * register this as a block device and as compliant with the

--- 121 unchanged lines hidden ---