Deleted Added
full compact
mmcvar.h (183542) mmcvar.h (183704)
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 183542 2008-10-02 07:06:59Z imp $"
52 * "$FreeBSD: head/sys/dev/mmc/mmcvar.h 183704 2008-10-08 17:35:41Z mav $"
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,
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,
65 MMC_IVAR_HIGH_CAP,
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, off_t)
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)
66// MMC_IVAR_,
67};
68
69/*
70 * Simplified accessors for pci devices
71 */
72#define MMC_ACCESSOR(var, ivar, type) \
73 __BUS_ACCESSOR(mmc, var, MMC, ivar, type)
74
75MMC_ACCESSOR(dsr_imp, DSR_IMP, int)
76MMC_ACCESSOR(media_size, MEDIA_SIZE, off_t)
77MMC_ACCESSOR(rca, RCA, int)
78MMC_ACCESSOR(sector_size, SECTOR_SIZE, int)
79MMC_ACCESSOR(tran_speed, TRAN_SPEED, int)
80MMC_ACCESSOR(read_only, READ_ONLY, int)
81MMC_ACCESSOR(high_cap, HIGH_CAP, int)
80
81#endif /* DEV_MMC_MMCVAR_H */
82
83#endif /* DEV_MMC_MMCVAR_H */