mmcvar.h (170002) | mmcvar.h (183447) |
---|---|
1/*- 2 * Copyright (c) 2006 Bernd Walter. All rights reserved. 3 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 35 unchanged lines hidden (view full) --- 44 * right of the SD Group, SD-3C LLC, the SD Card Association or any third 45 * parties, which may result from its use. No license is granted by 46 * implication, estoppel or otherwise under any patent or other rights of the 47 * SD Group, SD-3C LLC, the SD Card Association or any third party. Nothing 48 * herein shall be construed as an obligation by the SD Group, the SD-3C LLC 49 * or the SD Card Association to disclose or distribute any technical 50 * information, know-how or other confidential information to any third party. 51 * | 1/*- 2 * Copyright (c) 2006 Bernd Walter. All rights reserved. 3 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 35 unchanged lines hidden (view full) --- 44 * right of the SD Group, SD-3C LLC, the SD Card Association or any third 45 * parties, which may result from its use. No license is granted by 46 * implication, estoppel or otherwise under any patent or other rights of the 47 * SD Group, SD-3C LLC, the SD Card Association or any third party. Nothing 48 * herein shall be construed as an obligation by the SD Group, the SD-3C LLC 49 * or the SD Card Association to disclose or distribute any technical 50 * information, know-how or other confidential information to any third party. 51 * |
52 * "$FreeBSD: head/sys/dev/mmc/mmcvar.h 170002 2007-05-26 05:23:36Z imp $" | 52 * "$FreeBSD: head/sys/dev/mmc/mmcvar.h 183447 2008-09-28 22:40:11Z imp $" |
53 */ 54 55#ifndef DEV_MMC_MMCVAR_H 56#define DEV_MMC_MMCVAR_H 57 58enum mmc_device_ivars { 59 MMC_IVAR_DSR_IMP, 60 MMC_IVAR_MEDIA_SIZE, 61 MMC_IVAR_RCA, 62 MMC_IVAR_SECTOR_SIZE, 63 MMC_IVAR_TRAN_SPEED, | 53 */ 54 55#ifndef DEV_MMC_MMCVAR_H 56#define DEV_MMC_MMCVAR_H 57 58enum mmc_device_ivars { 59 MMC_IVAR_DSR_IMP, 60 MMC_IVAR_MEDIA_SIZE, 61 MMC_IVAR_RCA, 62 MMC_IVAR_SECTOR_SIZE, 63 MMC_IVAR_TRAN_SPEED, |
64 MMC_IVAR_READ_ONLY, |
|
64// MMC_IVAR_, 65}; 66 67/* 68 * Simplified accessors for pci devices 69 */ 70#define MMC_ACCESSOR(var, ivar, type) \ 71 __BUS_ACCESSOR(mmc, var, MMC, ivar, type) 72 73MMC_ACCESSOR(dsr_imp, DSR_IMP, int) 74MMC_ACCESSOR(media_size, MEDIA_SIZE, int) 75MMC_ACCESSOR(rca, RCA, int) 76MMC_ACCESSOR(sector_size, SECTOR_SIZE, int) 77MMC_ACCESSOR(tran_speed, TRAN_SPEED, int) | 65// MMC_IVAR_, 66}; 67 68/* 69 * Simplified accessors for pci devices 70 */ 71#define MMC_ACCESSOR(var, ivar, type) \ 72 __BUS_ACCESSOR(mmc, var, MMC, ivar, type) 73 74MMC_ACCESSOR(dsr_imp, DSR_IMP, int) 75MMC_ACCESSOR(media_size, MEDIA_SIZE, int) 76MMC_ACCESSOR(rca, RCA, int) 77MMC_ACCESSOR(sector_size, SECTOR_SIZE, int) 78MMC_ACCESSOR(tran_speed, TRAN_SPEED, int) |
79MMC_ACCESSOR(read_only, READ_ONLY, int) |
|
78 79#endif /* DEV_MMC_MMCVAR_H */ | 80 81#endif /* DEV_MMC_MMCVAR_H */ |