From: Albert H. <he...@us...> - 2008-04-04 19:30:39
|
Update of /cvsroot/gc-linux/linux/drivers/block In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv27735/drivers/block Modified Files: Kconfig Makefile Added Files: rvl-stsd.c Log Message: Added support for the front SD card slot. Index: Makefile =================================================================== RCS file: /cvsroot/gc-linux/linux/drivers/block/Makefile,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- Makefile 4 Mar 2008 06:06:07 -0000 1.18 +++ Makefile 4 Apr 2008 19:30:40 -0000 1.19 @@ -17,6 +17,7 @@ obj-$(CONFIG_GAMECUBE_MEMCARD) += gcn-memcard.o obj-$(CONFIG_GAMECUBE_SD) += gcn-sd.o obj-$(CONFIG_WII_MEM2) += rvl-mem2.o +obj-$(CONFIG_WII_SD) += rvl-stsd.o obj-$(CONFIG_BLK_DEV_RAM) += rd.o obj-$(CONFIG_BLK_DEV_LOOP) += loop.o obj-$(CONFIG_BLK_DEV_PS2) += ps2esdi.o Index: Kconfig =================================================================== RCS file: /cvsroot/gc-linux/linux/drivers/block/Kconfig,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- Kconfig 26 Mar 2008 20:06:36 -0000 1.31 +++ Kconfig 4 Apr 2008 19:30:40 -0000 1.32 @@ -127,6 +127,22 @@ To compile this driver as a module, choose M here: the module will be called gcn-sd. +config WII_SD + tristate "Nintendo Wii front slot MMC/SD" + depends on WII + help + This enables support for MMC/SD cards using the front slot of + the Nintendo Wii. + + You probably want to compile FAT support, and the required + codepages, or mount will complain. See Filesystems -> DOS/FAT/NT + filesystems and Filesystems -> Native Language Support + + Say Y if you want to include this driver in the kernel. + + To compile this driver as a module, choose M here: the + module will be called rvl-stsd. + config WII_MEM2 tristate "Nintendo Wii MEM2" depends on WII --- NEW FILE: rvl-stsd.c --- /* * drivers/block/rvl-stsd.c * * Block driver for the Nintendo Wii SD front slot. * Copyright (C) 2008 The GameCube Linux Team * Copyright (C) 2008 Albert Herranz * * Based on drivers/block/gcn-sd.c * * Copyright (C) 2004-2008 The GameCube Linux Team * Copyright (C) 2004,2005 Rob Reylink * Copyright (C) 2005 Todd Jeffreys * Copyright (C) 2005,2006,2007,2008 Albert Herranz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * [...1689 lines suppressed...] STSD_MAJOR); return -EIO; } return of_register_platform_driver(&stsd_of_driver); } static void __exit stsd_exit_module(void) { of_unregister_platform_driver(&stsd_of_driver); unregister_blkdev(STSD_MAJOR, DRV_MODULE_NAME); } module_init(stsd_init_module); module_exit(stsd_exit_module); MODULE_AUTHOR(DRV_AUTHOR); MODULE_DESCRIPTION(DRV_DESCRIPTION); MODULE_LICENSE("GPL"); |