Deleted Added
full compact
sdhci.h (247495) sdhci.h (254424)
1/*-
2 * Copyright (c) 2008 Alexander Motin <mav@FreeBSD.org>
3 * 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

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

17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
1/*-
2 * Copyright (c) 2008 Alexander Motin <mav@FreeBSD.org>
3 * 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

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

17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 * $FreeBSD: head/sys/dev/sdhci/sdhci.h 247495 2013-02-28 19:43:14Z gonzo $
25 * $FreeBSD: head/sys/dev/sdhci/sdhci.h 254424 2013-08-16 19:44:49Z ian $
26 */
27
28#ifndef __SDHCI_H__
29#define __SDHCI_H__
30
31#define DMA_BLOCK_SIZE 4096
32#define DMA_BOUNDARY 0 /* DMA reload every 4K */
33

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

115
116#define SDHCI_HOST_CONTROL 0x28
117#define SDHCI_CTRL_LED 0x01
118#define SDHCI_CTRL_4BITBUS 0x02
119#define SDHCI_CTRL_HISPD 0x04
120#define SDHCI_CTRL_SDMA 0x08
121#define SDHCI_CTRL_ADMA2 0x10
122#define SDHCI_CTRL_ADMA264 0x18
26 */
27
28#ifndef __SDHCI_H__
29#define __SDHCI_H__
30
31#define DMA_BLOCK_SIZE 4096
32#define DMA_BOUNDARY 0 /* DMA reload every 4K */
33

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

115
116#define SDHCI_HOST_CONTROL 0x28
117#define SDHCI_CTRL_LED 0x01
118#define SDHCI_CTRL_4BITBUS 0x02
119#define SDHCI_CTRL_HISPD 0x04
120#define SDHCI_CTRL_SDMA 0x08
121#define SDHCI_CTRL_ADMA2 0x10
122#define SDHCI_CTRL_ADMA264 0x18
123#define SDHCI_CTRL_DMA_MASK 0x18
124#define SDHCI_CTRL_8BITBUS 0x20
123#define SDHCI_CTRL_CARD_DET 0x40
124#define SDHCI_CTRL_FORCE_CARD 0x80
125
126#define SDHCI_POWER_CONTROL 0x29
127#define SDHCI_POWER_ON 0x01
128#define SDHCI_POWER_180 0x0A
129#define SDHCI_POWER_300 0x0C
130#define SDHCI_POWER_330 0x0E

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

190#define SDHCI_TIMEOUT_CLK_MASK 0x0000003F
191#define SDHCI_TIMEOUT_CLK_SHIFT 0
192#define SDHCI_TIMEOUT_CLK_UNIT 0x00000080
193#define SDHCI_CLOCK_BASE_MASK 0x00003F00
194#define SDHCI_CLOCK_V3_BASE_MASK 0x0000FF00
195#define SDHCI_CLOCK_BASE_SHIFT 8
196#define SDHCI_MAX_BLOCK_MASK 0x00030000
197#define SDHCI_MAX_BLOCK_SHIFT 16
125#define SDHCI_CTRL_CARD_DET 0x40
126#define SDHCI_CTRL_FORCE_CARD 0x80
127
128#define SDHCI_POWER_CONTROL 0x29
129#define SDHCI_POWER_ON 0x01
130#define SDHCI_POWER_180 0x0A
131#define SDHCI_POWER_300 0x0C
132#define SDHCI_POWER_330 0x0E

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

192#define SDHCI_TIMEOUT_CLK_MASK 0x0000003F
193#define SDHCI_TIMEOUT_CLK_SHIFT 0
194#define SDHCI_TIMEOUT_CLK_UNIT 0x00000080
195#define SDHCI_CLOCK_BASE_MASK 0x00003F00
196#define SDHCI_CLOCK_V3_BASE_MASK 0x0000FF00
197#define SDHCI_CLOCK_BASE_SHIFT 8
198#define SDHCI_MAX_BLOCK_MASK 0x00030000
199#define SDHCI_MAX_BLOCK_SHIFT 16
200#define SDHCI_CAN_DO_8BITBUS 0x00040000
198#define SDHCI_CAN_DO_ADMA2 0x00080000
199#define SDHCI_CAN_DO_HISPD 0x00200000
200#define SDHCI_CAN_DO_DMA 0x00400000
201#define SDHCI_CAN_DO_SUSPEND 0x00800000
202#define SDHCI_CAN_VDD_330 0x01000000
203#define SDHCI_CAN_VDD_300 0x02000000
204#define SDHCI_CAN_VDD_180 0x04000000
205#define SDHCI_CAN_DO_64BIT 0x10000000

--- 70 unchanged lines hidden ---
201#define SDHCI_CAN_DO_ADMA2 0x00080000
202#define SDHCI_CAN_DO_HISPD 0x00200000
203#define SDHCI_CAN_DO_DMA 0x00400000
204#define SDHCI_CAN_DO_SUSPEND 0x00800000
205#define SDHCI_CAN_VDD_330 0x01000000
206#define SDHCI_CAN_VDD_300 0x02000000
207#define SDHCI_CAN_VDD_180 0x04000000
208#define SDHCI_CAN_DO_64BIT 0x10000000

--- 70 unchanged lines hidden ---