Deleted Added
full compact
sdhci.h (312244) sdhci.h (312399)
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: stable/11/sys/dev/sdhci/sdhci.h 312244 2017-01-15 22:10:32Z ian $
25 * $FreeBSD: stable/11/sys/dev/sdhci/sdhci.h 312399 2017-01-18 23:25:46Z marius $
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

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

61#define SDHCI_QUIRK_DONT_SHIFT_RESPONSE (1<<13)
62/* Wait to see reset bit asserted before waiting for de-asserted */
63#define SDHCI_QUIRK_WAITFOR_RESET_ASSERTED (1<<14)
64/* Leave controller in standard mode when putting card in HS mode. */
65#define SDHCI_QUIRK_DONT_SET_HISPD_BIT (1<<15)
66/* Alternate clock source is required when supplying a 400 KHz clock. */
67#define SDHCI_QUIRK_BCM577XX_400KHZ_CLKSRC (1<<16)
68/* Card insert/remove interrupts don't work, polling required. */
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

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

61#define SDHCI_QUIRK_DONT_SHIFT_RESPONSE (1<<13)
62/* Wait to see reset bit asserted before waiting for de-asserted */
63#define SDHCI_QUIRK_WAITFOR_RESET_ASSERTED (1<<14)
64/* Leave controller in standard mode when putting card in HS mode. */
65#define SDHCI_QUIRK_DONT_SET_HISPD_BIT (1<<15)
66/* Alternate clock source is required when supplying a 400 KHz clock. */
67#define SDHCI_QUIRK_BCM577XX_400KHZ_CLKSRC (1<<16)
68/* Card insert/remove interrupts don't work, polling required. */
69#define SDHCI_QUIRK_POLL_CARD_PRESENT (1<<17)
69#define SDHCI_QUIRK_POLL_CARD_PRESENT (1<<17)
70/* All controller slots are non-removable. */
71#define SDHCI_QUIRK_ALL_SLOTS_NON_REMOVABLE (1<<18)
72/* Issue custom Intel controller reset sequence after power-up. */
73#define SDHCI_QUIRK_INTEL_POWER_UP_RESET (1<<19)
74/* Data timeout is invalid, use 1 MHz clock instead. */
75#define SDHCI_QUIRK_DATA_TIMEOUT_1MHZ (1<<20)
70
71/*
72 * Controller registers
73 */
74#define SDHCI_DMA_ADDRESS 0x00
75
76#define SDHCI_BLOCK_SIZE 0x04
77#define SDHCI_MAKE_BLKSZ(dma, blksz) (((dma & 0x7) << 12) | (blksz & 0xFFF))

--- 256 unchanged lines hidden ---
76
77/*
78 * Controller registers
79 */
80#define SDHCI_DMA_ADDRESS 0x00
81
82#define SDHCI_BLOCK_SIZE 0x04
83#define SDHCI_MAKE_BLKSZ(dma, blksz) (((dma & 0x7) << 12) | (blksz & 0xFFF))

--- 256 unchanged lines hidden ---