ps3vram.c (eb28d31bc97e6374d81f404da309401ffaed467b) | ps3vram.c (086fa5ff0854c676ec333760f4c0154b3b242616) |
---|---|
1/* 2 * ps3vram - Use extra PS3 video ram as MTD block device. 3 * 4 * Copyright 2009 Sony Corporation 5 * 6 * Based on the MTD ps3vram driver, which is 7 * Copyright (c) 2007-2008 Jim Paris <jim@jtan.com> 8 * Added support RSX DMA Vivien Chappelier <vivien.chappelier@free.fr> --- 740 unchanged lines hidden (view full) --- 749 } 750 751 priv->queue = queue; 752 queue->queuedata = dev; 753 blk_queue_make_request(queue, ps3vram_make_request); 754 blk_queue_max_phys_segments(queue, MAX_PHYS_SEGMENTS); 755 blk_queue_max_hw_segments(queue, MAX_HW_SEGMENTS); 756 blk_queue_max_segment_size(queue, BLK_MAX_SEGMENT_SIZE); | 1/* 2 * ps3vram - Use extra PS3 video ram as MTD block device. 3 * 4 * Copyright 2009 Sony Corporation 5 * 6 * Based on the MTD ps3vram driver, which is 7 * Copyright (c) 2007-2008 Jim Paris <jim@jtan.com> 8 * Added support RSX DMA Vivien Chappelier <vivien.chappelier@free.fr> --- 740 unchanged lines hidden (view full) --- 749 } 750 751 priv->queue = queue; 752 queue->queuedata = dev; 753 blk_queue_make_request(queue, ps3vram_make_request); 754 blk_queue_max_phys_segments(queue, MAX_PHYS_SEGMENTS); 755 blk_queue_max_hw_segments(queue, MAX_HW_SEGMENTS); 756 blk_queue_max_segment_size(queue, BLK_MAX_SEGMENT_SIZE); |
757 blk_queue_max_sectors(queue, BLK_SAFE_MAX_SECTORS); | 757 blk_queue_max_hw_sectors(queue, BLK_SAFE_MAX_SECTORS); |
758 759 gendisk = alloc_disk(1); 760 if (!gendisk) { 761 dev_err(&dev->core, "alloc_disk failed\n"); 762 error = -ENOMEM; 763 goto fail_cleanup_queue; 764 } 765 --- 114 unchanged lines hidden --- | 758 759 gendisk = alloc_disk(1); 760 if (!gendisk) { 761 dev_err(&dev->core, "alloc_disk failed\n"); 762 error = -ENOMEM; 763 goto fail_cleanup_queue; 764 } 765 --- 114 unchanged lines hidden --- |