On Sat, 6 Nov 2010 02:53:04 +0800 "Alagnou, GregoryX" <[email protected]> wrote:
> From 0be7cdd6a374cdae2b940eed04fd619d94bb0add Mon Sep 17 00:00:00 2001 > From: Gregory Alagnou <[email protected]> > Date: Thu, 4 Nov 2010 11:51:15 +0100 > Subject: [PATCH] SFI: Add SD type to SFI device parsing > > SFI_DEV_TYPE_SD is added to SFI device type. On SFI table parsing, > add SD device data processing: data are stored in sd_board_info > structure and SD platform data function is call. > > Signed-off-by: Gregory Alagnou <[email protected]> > --- > diff --git a/include/linux/mmc/sdio.h b/include/linux/mmc/sdio.h > index 245cdac..6fd081e 100644 > --- a/include/linux/mmc/sdio.h > +++ b/include/linux/mmc/sdio.h > @@ -12,6 +12,24 @@ > #ifndef MMC_SDIO_H > #define MMC_SDIO_H > > +#define SD_NAME_SIZE 16 > + > +/** > + * struct sd_board_info - template for device creation > + * @name: Initializes sdio_device.name; identifies the driver. > + * @bus_num: board-specific identifier for a given SDIO controller. > + * @board_ref_clock: Initializes sd_device.board_ref_clock; > + * @platform_data: Initializes sd_device.platform_data; the > particular > + * data stored there is driver-specific. > + * > + */ > +struct sd_board_info { > + char name[SD_NAME_SIZE]; > + int bus_num; > + u32 board_ref_clock; > + void *platform_data; > +}; > + Why do we need this? Is the SD card detectable? why should we assign a bus num to it. Generally people should be able to plug it into different controllers' slot. Thanks, Feng _______________________________________________ MeeGo-kernel mailing list [email protected] http://lists.meego.com/listinfo/meego-kernel
