src: Use tabs for indentation
Change-Id: I6b40aaf5af5d114bbb0cd227dfd50b0ee19eebba Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/28934 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
d9169f826a
commit
88607a4b10
@@ -28,7 +28,7 @@ static void at24rf08c_init(struct device *dev)
|
||||
if (!dev->enabled)
|
||||
return;
|
||||
|
||||
/* Ensure that EEPROM/RFID chip is not accessible through RFID.
|
||||
/* Ensure that EEPROM/RFID chip is not accessible through RFID.
|
||||
Need to do it only on 5c. */
|
||||
if (dev->path.type != DEVICE_PATH_I2C || dev->path.i2c.device != 0x5c)
|
||||
return;
|
||||
|
@@ -39,7 +39,7 @@ static int at24rf08c_read_byte(struct device *dev, u8 addr)
|
||||
int t = -1;
|
||||
int j;
|
||||
|
||||
/* After a register write AT24RF08C (which we issued in init function)
|
||||
/* After a register write AT24RF08C (which we issued in init function)
|
||||
sometimes stops responding. Retry several times in case of failure.
|
||||
*/
|
||||
for (j = 0; j < 100; j++) {
|
||||
|
@@ -103,7 +103,7 @@ int intel_vga_int15_handler(void)
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
default:
|
||||
printk(BIOS_DEBUG, "Unknown INT15 function %04x!\n", X86_AX);
|
||||
break;
|
||||
}
|
||||
|
@@ -108,14 +108,14 @@ struct vbios_data {
|
||||
#define BDB_SKIP 254 /* VBIOS private block, ignore */
|
||||
|
||||
struct bdb_general_features {
|
||||
/* bits 1 */
|
||||
/* bits 1 */
|
||||
u8 panel_fitting:2;
|
||||
u8 flexaim:1;
|
||||
u8 msg_enable:1;
|
||||
u8 clear_screen:3;
|
||||
u8 color_flip:1;
|
||||
|
||||
/* bits 2 */
|
||||
/* bits 2 */
|
||||
u8 download_ext_vbt:1;
|
||||
u8 enable_ssc:1;
|
||||
u8 ssc_freq:1;
|
||||
@@ -125,17 +125,17 @@ struct bdb_general_features {
|
||||
u8 display_clock_mode:1;
|
||||
u8 rsvd8:1; /* finish byte */
|
||||
|
||||
/* bits 3 */
|
||||
/* bits 3 */
|
||||
u8 disable_smooth_vision:1;
|
||||
u8 single_dvi:1;
|
||||
u8 rsvd9:1;
|
||||
u8 fdi_rx_polarity_inverted:1;
|
||||
u8 rsvd10:4; /* finish byte */
|
||||
|
||||
/* bits 4 */
|
||||
/* bits 4 */
|
||||
u8 legacy_monitor_detect;
|
||||
|
||||
/* bits 5 */
|
||||
/* bits 5 */
|
||||
u8 int_crt_support:1;
|
||||
u8 int_tv_support:1;
|
||||
u8 int_efp_support:1;
|
||||
@@ -603,7 +603,7 @@ struct bdb_edp {
|
||||
#define SWF14_PM_APM_12 (0x2 << 16)
|
||||
#define SWF14_PM_APM_11 (0x1 << 16)
|
||||
#define SWF14_HK_REQUEST_MASK 0x0000ffff /* see GR18 6:3 for event type */
|
||||
/* if GR18 indicates a display switch */
|
||||
/* if GR18 indicates a display switch */
|
||||
#define SWF14_DS_PIPEB_LFP2_EN (1<<15)
|
||||
#define SWF14_DS_PIPEB_EFP2_EN (1<<14)
|
||||
#define SWF14_DS_PIPEB_TV2_EN (1<<13)
|
||||
@@ -620,9 +620,9 @@ struct bdb_edp {
|
||||
#define SWF14_DS_PIPEA_EFP_EN (1<<2)
|
||||
#define SWF14_DS_PIPEA_TV_EN (1<<1)
|
||||
#define SWF14_DS_PIPEA_CRT_EN (1<<0)
|
||||
/* if GR18 indicates a panel fitting request */
|
||||
/* if GR18 indicates a panel fitting request */
|
||||
#define SWF14_PFIT_EN (1<<0) /* 0 means disable */
|
||||
/* if GR18 indicates an APM change request */
|
||||
/* if GR18 indicates an APM change request */
|
||||
#define SWF14_APM_HIBERNATE 0x4
|
||||
#define SWF14_APM_SUSPEND 0x3
|
||||
#define SWF14_APM_STANDBY 0x1
|
||||
|
@@ -265,7 +265,7 @@ static void wifi_pci_dev_init(struct device *dev)
|
||||
val = pci_read_config16(dev, PMCS_DR);
|
||||
if (val & PME_STS)
|
||||
elog_add_event_wake(ELOG_WAKE_SOURCE_PME_WIFI, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static struct pci_operations pci_ops = {
|
||||
|
@@ -34,8 +34,8 @@ enum { /* export_type */
|
||||
|
||||
/* Callback for decodeVpdString to invoke. */
|
||||
typedef int VpdDecodeCallback(const uint8_t *key, int32_t key_len,
|
||||
const uint8_t *value, int32_t value_len,
|
||||
void *arg);
|
||||
const uint8_t *value, int32_t value_len,
|
||||
void *arg);
|
||||
|
||||
/* Container data types */
|
||||
struct StringPair {
|
||||
@@ -153,53 +153,53 @@ int decodeVpdString(
|
||||
void initContainer(struct PairContainer *container);
|
||||
|
||||
struct StringPair *findString(struct PairContainer *container,
|
||||
const uint8_t *key,
|
||||
struct StringPair ***prev_next);
|
||||
const uint8_t *key,
|
||||
struct StringPair ***prev_next);
|
||||
|
||||
/* If key is already existed in container, its value will be replaced.
|
||||
* If not existed, creates new entry in container.
|
||||
*/
|
||||
void setString(struct PairContainer *container,
|
||||
const uint8_t *key,
|
||||
const uint8_t *value,
|
||||
const int pad_len);
|
||||
const uint8_t *key,
|
||||
const uint8_t *value,
|
||||
const int pad_len);
|
||||
|
||||
/* merge all entries in src into dst. If key is duplicate, overwrite it.
|
||||
*/
|
||||
void mergeContainer(struct PairContainer *dst,
|
||||
const struct PairContainer *src);
|
||||
const struct PairContainer *src);
|
||||
|
||||
/* subtract src from dst.
|
||||
*/
|
||||
int subtractContainer(struct PairContainer *dst,
|
||||
const struct PairContainer *src);
|
||||
const struct PairContainer *src);
|
||||
|
||||
/* Given a container, encode its all entries into the buffer.
|
||||
*/
|
||||
int encodeContainer(const struct PairContainer *container,
|
||||
const int max_buf_len,
|
||||
uint8_t *buf,
|
||||
int *generated);
|
||||
const int max_buf_len,
|
||||
uint8_t *buf,
|
||||
int *generated);
|
||||
|
||||
/* Given a VPD blob, decode its entries and push into container.
|
||||
*/
|
||||
int decodeToContainer(struct PairContainer *container,
|
||||
const int32_t max_len,
|
||||
const uint8_t *input_buf,
|
||||
int32_t *consumed);
|
||||
const int32_t max_len,
|
||||
const uint8_t *input_buf,
|
||||
int32_t *consumed);
|
||||
|
||||
/* Set filter for exporting functions.
|
||||
* If filter is NULL, resets the filter so that everything can be exported.
|
||||
*/
|
||||
int setContainerFilter(struct PairContainer *container,
|
||||
const uint8_t *filter);
|
||||
const uint8_t *filter);
|
||||
|
||||
/*
|
||||
* Remove a key.
|
||||
* Returns VPD_OK if deleted successfully. Otherwise, VPD_FAIL.
|
||||
*/
|
||||
int deleteKey(struct PairContainer *container,
|
||||
const uint8_t *key);
|
||||
const uint8_t *key);
|
||||
|
||||
/*
|
||||
* Returns number of pairs in container.
|
||||
@@ -216,10 +216,10 @@ int lenOfContainer(const struct PairContainer *container);
|
||||
* generated.
|
||||
*/
|
||||
int exportContainer(const int export_type,
|
||||
const struct PairContainer *container,
|
||||
const int max_buf_len,
|
||||
uint8_t *buf,
|
||||
int *generated);
|
||||
const struct PairContainer *container,
|
||||
const int max_buf_len,
|
||||
uint8_t *buf,
|
||||
int *generated);
|
||||
|
||||
void destroyContainer(struct PairContainer *container);
|
||||
|
||||
|
Reference in New Issue
Block a user