gdrom.c (82ffd0454bd9bd57780966d47bfd56d579dd4fb3) gdrom.c (773008f6fe0544aa28140ced0504cefba17381aa)
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

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

781 goto probe_fail_no_disk;
782 }
783 probe_gdrom_setupdisk();
784 if (register_cdrom(gd.cd_info)) {
785 err = -ENODEV;
786 goto probe_fail_cdrom_register;
787 }
788 gd.disk->fops = &gdrom_bdops;
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

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

781 goto probe_fail_no_disk;
782 }
783 probe_gdrom_setupdisk();
784 if (register_cdrom(gd.cd_info)) {
785 err = -ENODEV;
786 goto probe_fail_cdrom_register;
787 }
788 gd.disk->fops = &gdrom_bdops;
789 gd.disk->events = DISK_EVENT_MEDIA_CHANGE;
789 /* latch on to the interrupt */
790 err = gdrom_set_interrupt_handlers();
791 if (err)
792 goto probe_fail_cmdirq_register;
793
794 gd.gdrom_rq = blk_mq_init_sq_queue(&gd.tag_set, &gdrom_mq_ops, 1,
795 BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_BLOCKING);
796 if (IS_ERR(gd.gdrom_rq)) {

--- 87 unchanged lines hidden ---
790 /* latch on to the interrupt */
791 err = gdrom_set_interrupt_handlers();
792 if (err)
793 goto probe_fail_cmdirq_register;
794
795 gd.gdrom_rq = blk_mq_init_sq_queue(&gd.tag_set, &gdrom_mq_ops, 1,
796 BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_BLOCKING);
797 if (IS_ERR(gd.gdrom_rq)) {

--- 87 unchanged lines hidden ---