Module Name: src Committed By: kiyohara Date: Thu Oct 7 12:00:21 UTC 2010
Modified Files: src/sys/dev/sdmmc: sdmmcchip.h Log Message: Add bus_rod. It use to change to Data Transfer mode. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/dev/sdmmc/sdmmcchip.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/sdmmc/sdmmcchip.h diff -u src/sys/dev/sdmmc/sdmmcchip.h:1.2 src/sys/dev/sdmmc/sdmmcchip.h:1.3 --- src/sys/dev/sdmmc/sdmmcchip.h:1.2 Tue Apr 6 15:10:09 2010 +++ src/sys/dev/sdmmc/sdmmcchip.h Thu Oct 7 12:00:21 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: sdmmcchip.h,v 1.2 2010/04/06 15:10:09 nonaka Exp $ */ +/* $NetBSD: sdmmcchip.h,v 1.3 2010/10/07 12:00:21 kiyohara Exp $ */ /* $OpenBSD: sdmmcchip.h,v 1.3 2007/05/31 10:09:01 uwe Exp $ */ /* @@ -44,10 +44,11 @@ /* write protect */ int (*write_protect)(sdmmc_chipset_handle_t); - /* bus power, clock frequency and width */ + /* bus power, clock frequency, width and ROD(OpenDrain/PushPull) */ int (*bus_power)(sdmmc_chipset_handle_t, uint32_t); int (*bus_clock)(sdmmc_chipset_handle_t, int); int (*bus_width)(sdmmc_chipset_handle_t, int); + int (*bus_rod)(sdmmc_chipset_handle_t, int); /* command execution */ void (*exec_command)(sdmmc_chipset_handle_t, @@ -72,13 +73,15 @@ /* write protect */ #define sdmmc_chip_write_protect(tag, handle) \ ((tag)->write_protect((handle))) -/* bus power, clock frequency and width */ +/* bus power, clock frequency, width and rod */ #define sdmmc_chip_bus_power(tag, handle, ocr) \ ((tag)->bus_power((handle), (ocr))) #define sdmmc_chip_bus_clock(tag, handle, freq) \ ((tag)->bus_clock((handle), (freq))) #define sdmmc_chip_bus_width(tag, handle, width) \ ((tag)->bus_width((handle), (width))) +#define sdmmc_chip_bus_rod(tag, handle, width) \ + ((tag)->bus_rod((handle), (width))) /* command execution */ #define sdmmc_chip_exec_command(tag, handle, cmdp) \ ((tag)->exec_command((handle), (cmdp)))