Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
#define ATAPI_CMD_START_STOP 0x1B
#define ATAPI_CMD_READ_12 0xA8
-
#define ATA_GET_ERR() inb(ATA_STATUS)
#define ATA_GET_STAT() inb(ATA_STATUS)
#define ATA_OK_STAT(stat,good,bad) (((stat)&((good)|(bad)))==(good))
unsigned short words164_255[92];/* reserved words 164-255 */
} hd_driveid_t;
-
/*
* PIO Mode Configuration
*
int blkmap_map_pmem(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt,
phys_addr_t paddr);
-
/**
* blkmap_from_label() - Find blkmap from label
*
For more information on these sources, see the manual.
--*/
-
#ifndef _BZLIB_H
#define _BZLIB_H
}
bz_stream;
-
#ifndef BZ_IMPORT
#define BZ_EXPORT
#endif
# define BZ_EXTERN extern
#endif
-
/*-- Core (low-level) library functions --*/
BZ_EXTERN int BZ_API(BZ2_bzCompressInit) (
bz_stream *strm
);
-
/*-- High(er) level library functions --*/
#ifndef BZ_NO_STDIO
);
#endif
-
/*-- Utility functions --*/
BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffCompress) (
int verbosity
);
-
/*--
Code contributed by Yoshioka Tsuneo
(QWF00133@niftyserve.or.jp/tsuneo-y@is.aist-nara.ac.jp),
int dev_num;
};
-
#if defined(CONFIG_DFU_NAME_MAX_SIZE)
#define DFU_NAME_SIZE CONFIG_DFU_NAME_MAX_SIZE
#else
HDMI_FC_INVIDCONF_IN_I_P_INTERLACED = 0x1,
HDMI_FC_INVIDCONF_IN_I_P_PROGRESSIVE = 0x0,
-
/* fc_aviconf0-fc_aviconf3 field values */
HDMI_FC_AVICONF0_PIX_FMT_MASK = 0x03,
HDMI_FC_AVICONF0_PIX_FMT_RGB = 0x00,
/* Current version of ACPI memory address space */
#define EC_ACPI_MEM_VERSION_CURRENT 2
-
/*
* This header file is used in coreboot both in C and ACPI code. The ACPI code
* is pre-processed to handle constants but the ASL compiler is unable to
uint32_t flags;
};
-
/*****************************************************************************/
/* Get/Set miscellaneous values */
uint32_t size; /* Size to erase in bytes */
};
-
#define EC_VER_FLASH_WRITE 1
/* v1 add async erase:
* subcommands can returns:
uint8_t block[EC_VBNV_BLOCK_SIZE_V2];
};
-
/* Get SPI flash information */
#define EC_CMD_FLASH_SPI_INFO 0x0018
uint8_t sr1, sr2;
};
-
/* Select flash during flash operations */
#define EC_CMD_FLASH_SELECT 0x0019
struct lightbar_params_v0 get_params_v0;
struct lightbar_params_v1 get_params_v1;
-
struct lightbar_params_v2_timing get_params_v2_timing;
struct lightbar_params_v2_tap get_params_v2_tap;
struct lightbar_params_v2_oscillation get_params_v2_osc;
uint16_t value;
};
-
/* The version 1 structs are visible. */
enum ec_temp_thresholds {
EC_TEMP_THRESH_WARN = 0,
float val[0];
};
-
/* Read raw TMP006 data */
#define EC_CMD_TMP006_GET_RAW 0x0055
/*****************************************************************************/
/* Host event commands */
-
/* Obsolete. New implementation should use EC_CMD_PROGRAM_HOST_EVENT instead */
/*
* Host event mask params and response structures, shared by all of the host
};
};
-
/*
* Set maximum battery charging current.
*/
uint8_t payload[0]; /* optional additional data payload: 0..16 bytes */
};
-
/* The timestamp is the microsecond counter shifted to get about a ms. */
#define PD_LOG_TIMESTAMP_SHIFT 10 /* 1 LSB = 1024us */
uint8_t port; /* port#, or 0 for events unrelated to a given port */
};
-
/* Control USB-PD chip */
#define EC_CMD_PD_CONTROL 0x0119
struct win_certificate_uefi_guid auth_info;
} __attribute__((__packed__));
-
/**
* struct efi_signature_data - A format of signature
*
EFI_GUID(0xb2ac5fc9, 0x92b7, 0x4acd, \
0xae, 0xac, 0x11, 0xe8, 0x18, 0xc3, 0x13, 0x0c)
-
/* Use internal device tree when starting UEFI application */
#define EFI_FDT_USE_INTERNAL NULL
#ifndef _ENV_INTERNAL_H_
#define _ENV_INTERNAL_H_
-
/**************************************************************************
*
* The "environment" is stored as a list of '\0' terminated
#undef EXPORT_FUNC
};
-
#define XF_VERSION 9
#if defined(CONFIG_X86)
#define AMD_ID_GL128N_2 0x22212221 /* 2nd ID word for S29GL128N */
#define AMD_ID_GL128N_3 0x22012201 /* 3rd ID word for S29GL128N */
-
#define AMD_ID_LV320B_2 0x221A221A /* 2d ID word for AM29LV320MB at 0x38 */
#define AMD_ID_LV320B_3 0x22002200 /* 3d ID word for AM29LV320MB at 0x3c */
#define FLASH_UNKNOWN 0xFFFF /* unknown flash type */
-
/* manufacturer offsets
*/
#define FLASH_MAN_AMD 0x00000000 /* AMD */
/* DEBUG_29 register */
#define DDR_TX_BD_DIS (1 << 10) /* Transmit Bit Deskew Disable */
-
#if (defined(CONFIG_SYS_FSL_DDR_VER) && \
(CONFIG_SYS_FSL_DDR_VER >= FSL_DDR_VER_4_7))
#ifdef CONFIG_SYS_FSL_DDR3L
extern void ddr_enable_ecc(unsigned int dram_size);
#endif
-
typedef struct fixed_ddr_parm{
int min_freq;
int max_freq;
u32 res9[80];
};
-
/* TBI register addresses */
#define TBI_CR 0x00
#define TBI_SR 0x01
#include <asm/arch/soc.h>
#endif
-
#ifdef CONFIG_SYS_FSL_ERRATUM_A006379
static inline bool has_erratum_a006379(void)
{
u32 svr = get_svr();
u32 soc = SVR_SOC_VER(svr);
-
switch (soc) {
#ifdef CONFIG_ARCH_LS1021A
case SOC_VER_LS1020:
#error Neither CONFIG_SYS_FSL_IFC_LE nor CONFIG_SYS_FSL_IFC_BE is defined
#endif
-
/*
* CSPR - Chip Select Property Register
*/
*/
#define IFC_GPCM_STAT_BSY 0x80000000 /* GPCM is busy */
-
#ifndef __ASSEMBLY__
#include <asm/io.h>
/* PHY Pre-defined Compare and CA delay-line Configuration (MPPDCMPR2) */
#define MPPDCMPR2_MPR_COMPARE_EN (1 << 0)
-
/* MMDC PHY Read DQS gating control register 0 (MPDGCTRL0) */
#define AUTO_RD_DQS_GATING_CALIBRATION_EN (1 << 28)
#endif /* CONFIG_ESBC_HDR_LS */
-
#if defined(CONFIG_FSL_ISBC_KEY_EXT)
struct ie_key_table {
u32 key_len;
#define GT_PCI0_HICMASK_OFS 0xca4
#define GT_PCI1_SERR1MASK_OFS 0xca8
-
/*
* I2O Support Registers
*/
#define GT_CPU_WR_DXDXDXDX 0
#define GT_CPU_WR_DDDD 1
-
#define GT_PCI_DCRM_SHF 21
#define GT_PCI_LD_SHF 0
#define GT_PCI_LD_MSK (MSK(15) << GT_PCI_LD_SHF)
#define GT_PCI_REMAP_SHF 0
#define GT_PCI_REMAP_MSK (MSK(11) << GT_PCI_REMAP_SHF)
-
#define GT_CFGADDR_CFGEN_SHF 31
#define GT_CFGADDR_CFGEN_MSK (MSK(1) << GT_CFGADDR_CFGEN_SHF)
#define GT_CFGADDR_CFGEN_BIT GT_CFGADDR_CFGEN_MSK
#define GT_CFGADDR_REGNUM_SHF 2
#define GT_CFGADDR_REGNUM_MSK (MSK(6) << GT_CFGADDR_REGNUM_SHF)
-
#define GT_SDRAM_BM_ORDER_SHF 2
#define GT_SDRAM_BM_ORDER_MSK (MSK(1) << GT_SDRAM_BM_ORDER_SHF)
#define GT_SDRAM_BM_ORDER_BIT GT_SDRAM_BM_ORDER_MSK
#define GT_SDRAM_BM_RSVD_ALL1 0xffb
-
#define GT_SDRAM_ADDRDECODE_ADDR_SHF 0
#define GT_SDRAM_ADDRDECODE_ADDR_MSK (MSK(3) << GT_SDRAM_ADDRDECODE_ADDR_SHF)
#define GT_SDRAM_ADDRDECODE_ADDR_0 0
#define GT_SDRAM_ADDRDECODE_ADDR_6 6
#define GT_SDRAM_ADDRDECODE_ADDR_7 7
-
#define GT_SDRAM_B0_CASLAT_SHF 0
#define GT_SDRAM_B0_CASLAT_MSK (MSK(2) << GT_SDRAM_B0__SHF)
#define GT_SDRAM_B0_CASLAT_2 1
#define GT_SDRAM_B0_BLEN_8 0
#define GT_SDRAM_B0_BLEN_4 1
-
#define GT_SDRAM_CFG_REFINT_SHF 0
#define GT_SDRAM_CFG_REFINT_MSK (MSK(14) << GT_SDRAM_CFG_REFINT_SHF)
#define GT_TC_CONTROL_SELTC0_MSK (MSK(1) << GT_TC_CONTROL_SELTC0_SHF)
#define GT_TC_CONTROL_SELTC0_BIT GT_TC_CONTROL_SELTC0_MSK
-
#define GT_PCI0_BARE_SWSCS3BOOTDIS_SHF 0
#define GT_PCI0_BARE_SWSCS3BOOTDIS_MSK \
(MSK(1) << GT_PCI0_BARE_SWSCS3BOOTDIS_SHF)
#define GT_PCI0_BARE_SCS10DIS_MSK (MSK(1) << GT_PCI0_BARE_SCS10DIS_SHF)
#define GT_PCI0_BARE_SCS10DIS_BIT GT_PCI0_BARE_SCS10DIS_MSK
-
#define GT_INTRCAUSE_MASABORT0_SHF 18
#define GT_INTRCAUSE_MASABORT0_MSK (MSK(1) << GT_INTRCAUSE_MASABORT0_SHF)
#define GT_INTRCAUSE_MASABORT0_BIT GT_INTRCAUSE_MASABORT0_MSK
#define GT_INTRCAUSE_TARABORT0_MSK (MSK(1) << GT_INTRCAUSE_TARABORT0_SHF)
#define GT_INTRCAUSE_TARABORT0_BIT GT_INTRCAUSE_TARABORT0_MSK
-
#define GT_PCI0_CMD_MBYTESWAP_SHF 0
#define GT_PCI0_CMD_MBYTESWAP_MSK (MSK(1) << GT_PCI0_CMD_MBYTESWAP_SHF)
#define GT_PCI0_CMD_MBYTESWAP_BIT GT_PCI0_CMD_MBYTESWAP_MSK
#ifndef _KEY_MATRIX_H
#define _KEY_MATRIX_H
-
/* Information about a matrix keyboard */
struct key_matrix {
/* Dimensions of the keyboard matrix, in rows and columns */
quickly avoid procedure declaration conflicts and linker symbol
conflicts with existing memory allocation routines.
-
*/
\f
#include <stdio.h> /* needed for malloc_stats */
#endif
-
/*
Compile-time options
*/
-
/*
Debugging:
returns a unique pointer for malloc(0), so does realloc(p, 0).
*/
-
/* #define REALLOC_ZERO_BYTES_FREES */
-
/*
WIN32 causes an emulation of sbrk to be compiled in
mmap-based options are not currently supported in WIN32.
#include <windows.h>
#endif
-
/*
HAVE_MEMCPY should be defined if you are not otherwise using
ANSI STD C, but still have memcpy and memset in your C library
#endif
-
/*
Define HAVE_MMAP to optionally make malloc() use mmap() to
allocate very large blocks. These will be returned to the
# endif
#endif
-
/*
This version of malloc supports the standard SVID/XPG mallinfo
#define M_MMAP_THRESHOLD -3
#define M_MMAP_MAX -4
-
#ifndef DEFAULT_TRIM_THRESHOLD
#define DEFAULT_TRIM_THRESHOLD (128 * 1024)
#endif
It must be greater than page size to have any useful effect. To
disable trimming completely, you can set to (unsigned long)(-1);
-
*/
-
#ifndef DEFAULT_TOP_PAD
#define DEFAULT_TOP_PAD (0)
#endif
*/
-
#ifndef DEFAULT_MMAP_THRESHOLD
#define DEFAULT_MMAP_THRESHOLD (128 * 1024)
#endif
All together, these considerations should lead you to use mmap
only for relatively large requests.
-
*/
-
#ifndef DEFAULT_MMAP_MAX
#ifdef HAVE_MMAP
#define DEFAULT_MMAP_MAX (64)
in mallopt will fail.
*/
-
/*
USE_DL_PREFIX will prefix all public routines with the string 'dl'.
Useful to quickly avoid procedure declaration conflicts and linker
*/
-
#ifdef INTERNAL_LINUX_C_LIB
#if __STD_C
* (C) Copyright 2009 Freescale Semiconductor, Inc.
*/
-
#ifndef __MC13892_H__
#define __MC13892_H__
#define PHY_ID_KSZ9031 0x00221620
#define PHY_ID_KSZ9131 0x00221640
-
/* Registers */
#define MMD_ACCESS_CONTROL 0xd
#define MMD_ACCESS_REG_DATA 0xe
#define MMC_MODE_1BIT BIT(28)
#define MMC_MODE_SPI BIT(27)
-
#define SD_DATA_4BIT 0x00040000
#define IS_SD(x) ((x)->version & SD_VERSION_SD)
#define MMC_CMD62_ARG1 0xefac62ec
#define MMC_CMD62_ARG2 0xcbaea7
-
#define SD_CMD_SEND_RELATIVE_ADDR 3
#define SD_CMD_SWITCH_FUNC 6
#define SD_CMD_SEND_IF_COND 8
#ifndef __MPCXX_H__
#define __MPCXX_H__
-
/*-----------------------------------------------------------------------
* Exception offsets (PowerPC standard)
*/
#define SCCR_DFALCD10 0x00000002 /* Division by 5 */
#define SCCR_DFALCD11 0x00000003 /* Division by 7 (maximum) */
-
/*-----------------------------------------------------------------------
* BR - Memory Controler: Base Register 16-9
*/
#define OR_TRLX 0x00000004 /* Timing Relaxed */
#define OR_EHTR 0x00000002 /* Extended Hold Time on Read */
-
/*-----------------------------------------------------------------------
* MPTPR - Memory Periodic Timer Prescaler Register 16-17
*/
#define TGCR_STP1 0x0002 /* Stop timer 1 */
#define TGCR_RST1 0x0001 /* Reset timer 1 */
-
/*-----------------------------------------------------------------------
* Timer Mode Register 18-9
*/
#define TMR_ICLK_TIN_PIN 0x0006 /* TINx pin */
#define TMR_GE 0x0001 /* Gate Enable */
-
/*-----------------------------------------------------------------------
* I2C Controller Registers
*/
#ifndef __MV886352_H
#define __MV886352_H
-
/* PHY registers */
#define PHY(itf) (itf)
return mtd_erase(info, &instr);
}
-
/*****************************************************************************
* declarations from nand_util.c
****************************************************************************/
int eth_env_set_enetaddr_by_index(const char *base_name, int index,
uchar *enetaddr);
-
/*
* Initialize USB ethernet device with CONFIG_DM_ETH
* Returns:
struct disk_partition *partitions, int parts,
gpt_header *gpt_head, gpt_entry **gpt_pte);
-
/**
* get_disk_guid() - Read the GUID string from a device's GPT
*
#define PCI_X_CMD_MAX_SPLIT 0x0030 /* Max Outstanding Split Transactions */
#define PCI_X_CMD_VERSION(x) (((x) >> 12) & 3) /* Version */
-
/* Slot Identification */
#define PCI_SID_ESR 2 /* Expansion Slot Register */
unsigned long io_bus, unsigned long io_phys,
unsigned long io_size);
-
#endif /* _PCI_GT64120_H */
#define PCI_VENDOR_ID_ZIATECH 0x1138
#define PCI_DEVICE_ID_ZIATECH_5550_HC 0x5550
-
#define PCI_VENDOR_ID_SYSKONNECT 0x1148
#define PCI_DEVICE_ID_SYSKONNECT_TR 0x4200
#define PCI_DEVICE_ID_SYSKONNECT_GE 0x4300
#define M_X_WIDE_REQ (0x03)
#define M_X_PPR_REQ (0x04)
-
/*
** Status
*/
#define SENSE_VOLUME_OVERFLOW 0xD
#define SENSE_MISCOMPARE 0xE
-
#define SCSI_CHANGE_DEF 0x40 /* Change Definition (Optional) */
#define SCSI_COMPARE 0x39 /* Compare (O) */
#define SCSI_COPY 0x18 /* Copy (O) */
unsigned char intel_cas; /* 129 Intel spec: CAS# Latency support */
} spd_eeprom_t;
-
/*
* Byte 2 Fundamental Memory Types.
*/
struct spl_load_info *load, ulong offset,
struct legacy_img_hdr *hdr);
-
/**
* spl_load_imx_container() - Loads a imx container image from a device.
* @spl_image: Image description to set up
#ifndef __include_tegra_kbc_h__
#define __include_tegra_kbc_h__
-
#define KEY_IS_MODIFIER(key) ((key) >= KEY_FIRST_MODIFIER)
struct kbc_tegra {
int usb_stop(void); /* stop the USB Controller */
int usb_detect_change(void); /* detect if a USB device has been (un)plugged */
-
int usb_set_protocol(struct usb_device *dev, int ifnum, int protocol);
int usb_set_idle(struct usb_device *dev, int ifnum, int duration,
int report_id);
} u;
} __attribute__ ((packed));
-
struct usb_hub_device {
struct usb_device *pusb_dev;
struct usb_hub_descriptor desc;
#define USB_PROT_HID_KEYBOARD 1
#define USB_PROT_HID_MOUSE 2
-
/* Sub STORAGE Classes */
#define US_SC_RBC 1 /* Typically, flash devices */
#define US_SC_8020 2 /* CD-ROM */
#define USB_TEST_MODE_PACKET 0x04
#define USB_TEST_MODE_FORCE_ENABLE 0x05
-
/*
* "pipe" definitions, use unsigned so we can compare reliably, since this
* value is shifted up to bits 30/31.
#define USB_ST_BIT_ERR 0x40 /* Bitstuff error */
#define USB_ST_NOT_PROC 0x80000000L /* Not yet processed */
-
/*************************************************************************
* Hub defines
*/
*
*/
-
#ifndef __USBDESCRIPTORS_H__
#define __USBDESCRIPTORS_H__
/* c.f. CDC 4.7 Table 19 */
#define DATA_INTERFACE_PROTOCOL_NONE 0x00 /* No class protcol required */
-
/* c.f. CDC 5.2.3 Table 24 */
#define CS_INTERFACE 0x24
#define CS_ENDPOINT 0x25
#define BULK 0x02
#define INTERRUPT 0x03
-
/* configuration modifiers
*/
#define BMATTRIBUTE_RESERVED 0x80
u8 bDescriptorSubtype;
} __attribute__ ((packed));
-
/*
* communications class descriptor structures
*
u16 wCountryCode0[0];
} __attribute__ ((packed));
-
struct usb_class_telephone_operational_descriptor {
u8 bFunctionLength;
u8 bDescriptorType;
u8 bmCapabilities;
} __attribute__ ((packed));
-
struct usb_class_usb_terminal_descriptor {
u8 bFunctionLength;
u8 bDescriptorType;
u16 wMaxVC;
} __attribute__ ((packed));
-
struct usb_class_mdlm_descriptor {
u8 bFunctionLength;
u8 bDescriptorType;
#include "usbdescriptors.h"
-
#define MAX_URBS_QUEUED 5
-
#if 1
#define usberr(fmt,args...) serial_printf("ERROR: %s(), %d: "fmt"\n",__FUNCTION__,__LINE__,##args)
#else
#define USB_REQ_SET_IDLE 0x0A
#define USB_REQ_SET_PROTOCOL 0x0B
-
/*
* USB Spec Release number
*/
#define USB_BCD_VERSION 0x0110
-
/*
* Device Requests (c.f Table 9-2)
*/
#define USB_DEVICE_REMOTE_WAKEUP 0x01
#define USB_TEST_MODE 0x02
-
/* USB Requests
*
*/
u16 wLength;
} __attribute__ ((packed));
-
/* USB Status
*
*/
} usb_device_event_t;
-
typedef struct urb_link {
struct urb_link *next;
struct urb_link *prev;
struct usb_interface_instance *interface_instance_array;
};
-
/* USB Device Instance
*
* For each physical bus interface we create a logical device structure. This
#define xyzModem_close 1
#define xyzModem_abort 2
-
#define CYGNUM_CALL_IF_SET_COMM_ID_QUERY_CURRENT
#define CYGACC_CALL_IF_SET_CONSOLE_COMM(x)
int chan;
} connection_info_t;
-
-
int xyzModem_stream_open(connection_info_t *info, int *err);
void xyzModem_stream_close(int *err);
void xyzModem_stream_terminate(bool method, int (*getc)(void));
#define SECTOR_SIZE 0x200
#define SECTOR_BITS 9
-
typedef enum zfs_endian {
UNKNOWN_ENDIAN = -2,
LITTLE_ENDIAN = -1,
BIG_ENDIAN = 0
} zfs_endian_t;
-
/* Endian macros. */
#define zfs_to_cpu16(x, a) (((a) == BIG_ENDIAN) ? be16_to_cpu(x) \
: le16_to_cpu(x))
#define cpu_to_zfs64(x, a) (((a) == BIG_ENDIAN) ? cpu_to_be64(x) \
: cpu_to_le64(x))
-
enum zfs_errors {
ZFS_ERR_NONE = 0,
ZFS_ERR_NOT_IMPLEMENTED_YET = -1,
time_t mtime2;
};
-
-
-
struct zfs_filesystem *zfsget_fs(void);
int zfs_open(zfs_file_t, const char *filename);
uint64_t zfs_read(zfs_file_t, char *buf, uint64_t len);