at91_mci.c (236373) | at91_mci.c (236658) |
---|---|
1/*- 2 * Copyright (c) 2006 Bernd Walter. All rights reserved. 3 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 4 * Copyright (c) 2010 Greg Ansley. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 Bernd Walter. All rights reserved. 3 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 4 * Copyright (c) 2010 Greg Ansley. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/arm/at91/at91_mci.c 236373 2012-06-01 03:00:36Z imp $"); | 29__FBSDID("$FreeBSD: head/sys/arm/at91/at91_mci.c 236658 2012-06-06 06:19:52Z imp $"); |
30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/bio.h> 34#include <sys/bus.h> 35#include <sys/conf.h> 36#include <sys/endian.h> 37#include <sys/kernel.h> --- 270 unchanged lines hidden (view full) --- 308 sc->irq_res = 0; 309 return; 310} 311 312static int 313at91_mci_is_mci1rev2xx(void) 314{ 315 | 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/bio.h> 34#include <sys/bus.h> 35#include <sys/conf.h> 36#include <sys/endian.h> 37#include <sys/kernel.h> --- 270 unchanged lines hidden (view full) --- 308 sc->irq_res = 0; 309 return; 310} 311 312static int 313at91_mci_is_mci1rev2xx(void) 314{ 315 |
316 switch (AT91_CPU(at91_chip_id)) { 317 case AT91_CPU_SAM9260: 318 case AT91_CPU_SAM9263: 319#ifdef notyet 320 case AT91_CPU_CAP9: 321#endif 322 case AT91_CPU_SAM9G10: 323 case AT91_CPU_SAM9G20: 324#ifdef notyet 325 case AT91_CPU_SAM9RL: 326#endif 327 case AT91_CPU_SAM9XE128: 328 case AT91_CPU_SAM9XE256: 329 case AT91_CPU_SAM9XE512: | 316 switch (soc_data.type) { 317 case AT91_T_SAM9260: 318 case AT91_T_SAM9263: 319 case AT91_T_CAP9: 320 case AT91_T_SAM9G10: 321 case AT91_T_SAM9G20: 322 case AT91_T_SAM9RL: |
330 return(1); | 323 return(1); |
324 default: 325 return (0); |
|
331 } | 326 } |
332 return (0); | |
333} 334 335static void 336at91_mci_getaddr(void *arg, bus_dma_segment_t *segs, int nsegs, int error) 337{ 338 if (error != 0) 339 return; 340 *(bus_addr_t *)arg = segs[0].ds_addr; --- 484 unchanged lines hidden --- | 327} 328 329static void 330at91_mci_getaddr(void *arg, bus_dma_segment_t *segs, int nsegs, int error) 331{ 332 if (error != 0) 333 return; 334 *(bus_addr_t *)arg = segs[0].ds_addr; --- 484 unchanged lines hidden --- |