ixp425_board.c (186352) | ixp425_board.c (215034) |
---|---|
1/*- 2 * Copyright (c) 2008 John Hay. 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. --- 10 unchanged lines hidden (view full) --- 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * 24 */ 25 26#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2008 John Hay. 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. --- 10 unchanged lines hidden (view full) --- 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * 24 */ 25 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: head/sys/boot/arm/ixp425/boot2/ixp425_board.c 186352 2008-12-20 03:26:09Z sam $"); | 27__FBSDID("$FreeBSD: head/sys/boot/arm/ixp425/boot2/ixp425_board.c 215034 2010-11-09 10:59:09Z brucec $"); |
28#include <sys/param.h> 29#include <sys/ata.h> 30#include <sys/linker_set.h> 31 32#include <stdarg.h> 33 34#include "lib.h" 35#include "cf_ata.h" --- 47 unchanged lines hidden (view full) --- 83 return (*pbp)->desc; 84 } 85 /* XXX panic, unknown board type */ 86 return "???"; 87} 88 89/* 90 * This should be called just before starting the kernel. This is so | 28#include <sys/param.h> 29#include <sys/ata.h> 30#include <sys/linker_set.h> 31 32#include <stdarg.h> 33 34#include "lib.h" 35#include "cf_ata.h" --- 47 unchanged lines hidden (view full) --- 83 return (*pbp)->desc; 84 } 85 /* XXX panic, unknown board type */ 86 return "???"; 87} 88 89/* 90 * This should be called just before starting the kernel. This is so |
91 * that one can undo incompatable hardware settings. | 91 * that one can undo incompatible hardware settings. |
92 */ 93void 94clr_board(void) 95{ 96 cf_clr(); 97} 98 99/* --- 399 unchanged lines hidden (view full) --- 499{ 500 u_int8_t status; 501 u_int32_t tout; 502 503 tout = 0; 504 while (tout <= 5000000) { 505 status = cfaltread8(CF_ALT_STATUS); 506 if (status == 0xff) { | 92 */ 93void 94clr_board(void) 95{ 96 cf_clr(); 97} 98 99/* --- 399 unchanged lines hidden (view full) --- 499{ 500 u_int8_t status; 501 u_int32_t tout; 502 503 tout = 0; 504 while (tout <= 5000000) { 505 status = cfaltread8(CF_ALT_STATUS); 506 if (status == 0xff) { |
507 printf("cfaltwait: master: no status, reselectin\n"); | 507 printf("cfaltwait: master: no status, reselecting\n"); |
508 cfwrite8(CF_DRV_HEAD, CF_D_IBM); 509 DELAY(1); 510 status = cfread8(CF_STATUS); 511 } 512 if (status == 0xff) 513 return -1; 514 dskinf.status = status; 515 if (!(status & CF_S_BUSY)) { --- 256 unchanged lines hidden --- | 508 cfwrite8(CF_DRV_HEAD, CF_D_IBM); 509 DELAY(1); 510 status = cfread8(CF_STATUS); 511 } 512 if (status == 0xff) 513 return -1; 514 dskinf.status = status; 515 if (!(status & CF_S_BUSY)) { --- 256 unchanged lines hidden --- |