Deleted Added
full compact
mmcreg.h (183446) mmcreg.h (183468)
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/mmcreg.h 183446 2008-09-28 22:27:29Z imp $
51 * $FreeBSD: head/sys/dev/mmc/mmcreg.h 183468 2008-09-29 18:17:23Z imp $
52 */
53
54#ifndef DEV_MMC_MMCREG_H
55#define DEV_MMC_MMCREG_H
56
57/*
58 * This file contains the register definitions for the mmc and sd busses.
59 * They are taken from publicly available sources.

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

91 uint32_t retries;
92 uint32_t error;
93#define MMC_ERR_NONE 0
94#define MMC_ERR_TIMEOUT 1
95#define MMC_ERR_BADCRC 2
96#define MMC_ERR_FIFO 3
97#define MMC_ERR_FAILED 4
98#define MMC_ERR_INVALID 5
52 */
53
54#ifndef DEV_MMC_MMCREG_H
55#define DEV_MMC_MMCREG_H
56
57/*
58 * This file contains the register definitions for the mmc and sd busses.
59 * They are taken from publicly available sources.

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

91 uint32_t retries;
92 uint32_t error;
93#define MMC_ERR_NONE 0
94#define MMC_ERR_TIMEOUT 1
95#define MMC_ERR_BADCRC 2
96#define MMC_ERR_FIFO 3
97#define MMC_ERR_FAILED 4
98#define MMC_ERR_INVALID 5
99#define MMC_ERR_NO_MEMORY 6
99#define MMC_ERR_NO_MEMORY 6
100 struct mmc_data *data; /* Data segment with cmd */
101 struct mmc_request *mrq; /* backpointer to request */
102};
103
104/*
105 * R1 responses
106 *
107 * Types (per SD 2.0 standard)

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

287 * 3.31 redefined them to be reserved and also said that cards had to
288 * support the 2.7-3.6V and fixed the OCR to be 0xfff8000 for high voltage
289 * cards. MMC 4.0 says that a dual voltage card responds with 0xfff8080.
290 * Looks like the fine-grained control of the voltage tolerance ranges
291 * was abandoned.
292 *
293 * The MMC_OCR_CCS appears to be valid for only SD cards.
294 */
100 struct mmc_data *data; /* Data segment with cmd */
101 struct mmc_request *mrq; /* backpointer to request */
102};
103
104/*
105 * R1 responses
106 *
107 * Types (per SD 2.0 standard)

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

287 * 3.31 redefined them to be reserved and also said that cards had to
288 * support the 2.7-3.6V and fixed the OCR to be 0xfff8000 for high voltage
289 * cards. MMC 4.0 says that a dual voltage card responds with 0xfff8080.
290 * Looks like the fine-grained control of the voltage tolerance ranges
291 * was abandoned.
292 *
293 * The MMC_OCR_CCS appears to be valid for only SD cards.
294 */
295#define MMC_OCR_VOLTAGE 0x3fffffffU /* Vdd Voltage mask */
295#define MMC_OCR_VOLTAGE 0x3fffffffU /* Vdd Voltage mask */
296#define MMC_OCR_LOW_VOLTAGE (1u << 7) /* Low Voltage Range -- tbd */
297#define MMC_OCR_200_210 (1U << 8) /* Vdd voltage 2.00 ~ 2.10 */
298#define MMC_OCR_210_220 (1U << 9) /* Vdd voltage 2.10 ~ 2.20 */
299#define MMC_OCR_220_230 (1U << 10) /* Vdd voltage 2.20 ~ 2.30 */
300#define MMC_OCR_230_240 (1U << 11) /* Vdd voltage 2.30 ~ 2.40 */
301#define MMC_OCR_240_250 (1U << 12) /* Vdd voltage 2.40 ~ 2.50 */
302#define MMC_OCR_250_260 (1U << 13) /* Vdd voltage 2.50 ~ 2.60 */
303#define MMC_OCR_260_270 (1U << 14) /* Vdd voltage 2.60 ~ 2.70 */

--- 51 unchanged lines hidden ---
296#define MMC_OCR_LOW_VOLTAGE (1u << 7) /* Low Voltage Range -- tbd */
297#define MMC_OCR_200_210 (1U << 8) /* Vdd voltage 2.00 ~ 2.10 */
298#define MMC_OCR_210_220 (1U << 9) /* Vdd voltage 2.10 ~ 2.20 */
299#define MMC_OCR_220_230 (1U << 10) /* Vdd voltage 2.20 ~ 2.30 */
300#define MMC_OCR_230_240 (1U << 11) /* Vdd voltage 2.30 ~ 2.40 */
301#define MMC_OCR_240_250 (1U << 12) /* Vdd voltage 2.40 ~ 2.50 */
302#define MMC_OCR_250_260 (1U << 13) /* Vdd voltage 2.50 ~ 2.60 */
303#define MMC_OCR_260_270 (1U << 14) /* Vdd voltage 2.60 ~ 2.70 */

--- 51 unchanged lines hidden ---