glue.c (233287) | glue.c (235609) |
---|---|
1/*- 2 * Copyright (c) 2007-2008 Semihalf, Rafal Jaworowski <raj@semihalf.com> 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2007-2008 Semihalf, Rafal Jaworowski <raj@semihalf.com> 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/boot/uboot/lib/glue.c 233287 2012-03-21 20:53:47Z marius $"); | 28__FBSDID("$FreeBSD: head/sys/boot/uboot/lib/glue.c 235609 2012-05-18 14:41:14Z gber $"); |
29 30#include <sys/types.h> 31 32#include <crc32.h> 33#include <stand.h> 34#include "api_public.h" 35#include "glue.h" 36 --- 365 unchanged lines hidden (view full) --- 402 return ("SCSI"); 403 404 if (type & DT_STOR_USB) 405 return ("USB"); 406 407 if (type & DT_STOR_MMC) 408 return ("MMC"); 409 | 29 30#include <sys/types.h> 31 32#include <crc32.h> 33#include <stand.h> 34#include "api_public.h" 35#include "glue.h" 36 --- 365 unchanged lines hidden (view full) --- 402 return ("SCSI"); 403 404 if (type & DT_STOR_USB) 405 return ("USB"); 406 407 if (type & DT_STOR_MMC) 408 return ("MMC"); 409 |
410 if (type & DT_STOR_NAND) 411 return ("NAND"); 412 |
|
410 return ("Unknown"); 411} 412 413char * 414ub_mem_type(int flags) 415{ 416 417 switch (flags & 0x000F) { --- 111 unchanged lines hidden --- | 413 return ("Unknown"); 414} 415 416char * 417ub_mem_type(int flags) 418{ 419 420 switch (flags & 0x000F) { --- 111 unchanged lines hidden --- |