Deleted Added
full compact
bridge.h (170002) bridge.h (183704)
1/*-
2 * Copyright (c) 2006 M. Warner Losh. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 34 unchanged lines hidden (view full) ---

43 * right of the SD Group, SD-3C LLC, the SD Card Association or any third
44 * parties, which may result from its use. No license is granted by
45 * implication, estoppel or otherwise under any patent or other rights of the
46 * SD Group, SD-3C LLC, the SD Card Association or any third party. Nothing
47 * herein shall be construed as an obligation by the SD Group, the SD-3C LLC
48 * or the SD Card Association to disclose or distribute any technical
49 * information, know-how or other confidential information to any third party.
50 *
1/*-
2 * Copyright (c) 2006 M. Warner Losh. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 34 unchanged lines hidden (view full) ---

43 * right of the SD Group, SD-3C LLC, the SD Card Association or any third
44 * parties, which may result from its use. No license is granted by
45 * implication, estoppel or otherwise under any patent or other rights of the
46 * SD Group, SD-3C LLC, the SD Card Association or any third party. Nothing
47 * herein shall be construed as an obligation by the SD Group, the SD-3C LLC
48 * or the SD Card Association to disclose or distribute any technical
49 * information, know-how or other confidential information to any third party.
50 *
51 * $FreeBSD: head/sys/dev/mmc/bridge.h 170002 2007-05-26 05:23:36Z imp $
51 * $FreeBSD: head/sys/dev/mmc/bridge.h 183704 2008-10-08 17:35:41Z mav $
52 */
53
54#ifndef DEV_MMC_BRIDGE_H
55#define DEV_MMC_BRIDGE_H
56
57/*
58 * This file defines interfaces for the mmc bridge. The names chosen
59 * are similar to or the same as the names used in Linux to allow for

--- 39 unchanged lines hidden (view full) ---

99enum mmc_chip_select {
100 cs_dontcare = 0, cs_high, cs_low
101};
102
103enum mmc_bus_width {
104 bus_width_1 = 0, bus_width_4 = 2, bus_width_8 = 3
105};
106
52 */
53
54#ifndef DEV_MMC_BRIDGE_H
55#define DEV_MMC_BRIDGE_H
56
57/*
58 * This file defines interfaces for the mmc bridge. The names chosen
59 * are similar to or the same as the names used in Linux to allow for

--- 39 unchanged lines hidden (view full) ---

99enum mmc_chip_select {
100 cs_dontcare = 0, cs_high, cs_low
101};
102
103enum mmc_bus_width {
104 bus_width_1 = 0, bus_width_4 = 2, bus_width_8 = 3
105};
106
107enum mmc_bus_timing {
108 bus_timing_normal = 0, bus_timing_hs
109};
110
107struct mmc_ios {
108 uint32_t clock; /* Speed of the clock in Hz to move data */
109 enum mmc_vdd vdd; /* Voltage to apply to the power pins/ */
110 enum mmc_bus_mode bus_mode;
111 enum mmc_chip_select chip_select;
112 enum mmc_bus_width bus_width;
113 enum mmc_power_mode power_mode;
111struct mmc_ios {
112 uint32_t clock; /* Speed of the clock in Hz to move data */
113 enum mmc_vdd vdd; /* Voltage to apply to the power pins/ */
114 enum mmc_bus_mode bus_mode;
115 enum mmc_chip_select chip_select;
116 enum mmc_bus_width bus_width;
117 enum mmc_power_mode power_mode;
118 enum mmc_bus_timing timing;
114};
115
116enum mmc_card_mode {
117 mode_mmc, mode_sd
118};
119
120struct mmc_host {
121 int f_min;
122 int f_max;
123 uint32_t host_ocr;
124 uint32_t ocr;
125 uint32_t caps;
126#define MMC_CAP_4_BIT_DATA (1 << 0) /* Can do 4-bit data transfers */
127#define MMC_CAP_8_BIT_DATA (1 << 1) /* Can do 8-bit data transfers */
119};
120
121enum mmc_card_mode {
122 mode_mmc, mode_sd
123};
124
125struct mmc_host {
126 int f_min;
127 int f_max;
128 uint32_t host_ocr;
129 uint32_t ocr;
130 uint32_t caps;
131#define MMC_CAP_4_BIT_DATA (1 << 0) /* Can do 4-bit data transfers */
132#define MMC_CAP_8_BIT_DATA (1 << 1) /* Can do 8-bit data transfers */
133#define MMC_CAP_HSPEED (1 << 2) /* Can do High Speed transfers */
128 enum mmc_card_mode mode;
129 struct mmc_ios ios; /* Current state of the host */
130};
131
132#endif /* DEV_MMC_BRIDGE_H */
134 enum mmc_card_mode mode;
135 struct mmc_ios ios; /* Current state of the host */
136};
137
138#endif /* DEV_MMC_BRIDGE_H */