![]() |
|
|||
0001 /* 0002 * PMC-Sierra SPC 8001 SAS/SATA based host adapters driver 0003 * 0004 * Copyright (c) 2008-2009 USI Co., Ltd. 0005 * All rights reserved. 0006 * 0007 * Redistribution and use in source and binary forms, with or without 0008 * modification, are permitted provided that the following conditions 0009 * are met: 0010 * 1. Redistributions of source code must retain the above copyright 0011 * notice, this list of conditions, and the following disclaimer, 0012 * without modification. 0013 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 0014 * substantially similar to the "NO WARRANTY" disclaimer below 0015 * ("Disclaimer") and any redistribution must be conditioned upon 0016 * including a substantially similar Disclaimer requirement for further 0017 * binary redistribution. 0018 * 3. Neither the names of the above-listed copyright holders nor the names 0019 * of any contributors may be used to endorse or promote products derived 0020 * from this software without specific prior written permission. 0021 * 0022 * Alternatively, this software may be distributed under the terms of the 0023 * GNU General Public License ("GPL") version 2 as published by the Free 0024 * Software Foundation. 0025 * 0026 * NO WARRANTY 0027 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 0028 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 0029 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 0030 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 0031 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 0032 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 0033 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 0034 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 0035 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 0036 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 0037 * POSSIBILITY OF SUCH DAMAGES. 0038 * 0039 */ 0040 0041 #ifndef PM8001_CTL_H_INCLUDED 0042 #define PM8001_CTL_H_INCLUDED 0043 0044 #define IOCTL_BUF_SIZE 4096 0045 #define HEADER_LEN 28 0046 #define SIZE_OFFSET 16 0047 0048 #define BIOSOFFSET 56 0049 #define BIOS_OFFSET_LIMIT 61 0050 0051 #define FLASH_OK 0x000000 0052 #define FAIL_OPEN_BIOS_FILE 0x000100 0053 #define FAIL_FILE_SIZE 0x000a00 0054 #define FAIL_PARAMETERS 0x000b00 0055 #define FAIL_OUT_MEMORY 0x000c00 0056 #define FLASH_IN_PROGRESS 0x001000 0057 0058 #define IB_OB_READ_TIMES 256 0059 #define SYSFS_OFFSET 1024 0060 #define PM80XX_IB_OB_QUEUE_SIZE (32 * 1024) 0061 #define PM8001_IB_OB_QUEUE_SIZE (16 * 1024) 0062 0063 static inline u32 pm8001_ctl_aap1_memmap(u8 *ptr, int idx, int off) 0064 { 0065 return *(u32 *)(ptr + idx * 32 + off); 0066 } 0067 #endif /* PM8001_CTL_H_INCLUDED */ 0068
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |