coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chip.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef __DRIVERS_I2C_SX9324_CHIP_H__
4
#define __DRIVERS_I2C_SX9324_CHIP_H__
5
6
#include <
acpi/acpi_device.h
>
7
#include <
device/i2c_simple.h
>
8
9
#define REGISTER(NAME) uint8_t NAME
10
11
struct
drivers_i2c_sx9324_config
{
12
/* Device Description */
13
const
char
*
desc
;
14
15
/* ACPI _UID */
16
unsigned
int
uid
;
17
18
/* Bus speed in Hz, default is I2C_SPEED_FAST */
19
enum
i2c_speed
speed
;
20
21
/* Use GPIO-based interrupt instead of IO-APIC */
22
struct
acpi_gpio
irq_gpio
;
23
24
/* IO-APIC interrupt */
25
struct
acpi_irq
irq
;
26
#include "
registers.h
"
27
};
28
29
#undef REGISTER
30
31
#endif
/* __DRIVERS_I2C_SX9324_CHIP_H__ */
acpi_device.h
registers.h
i2c_simple.h
i2c_speed
i2c_speed
Definition:
i2c.h:43
acpi_gpio
Definition:
acpi_device.h:164
acpi_irq
Definition:
acpi_device.h:88
drivers_i2c_sx9324_config
Definition:
chip.h:11
drivers_i2c_sx9324_config::desc
const char * desc
Definition:
chip.h:13
drivers_i2c_sx9324_config::irq_gpio
struct acpi_gpio irq_gpio
Definition:
chip.h:22
drivers_i2c_sx9324_config::uid
unsigned int uid
Definition:
chip.h:16
drivers_i2c_sx9324_config::irq
struct acpi_irq irq
Definition:
chip.h:25
drivers_i2c_sx9324_config::speed
enum i2c_speed speed
Definition:
chip.h:19
src
drivers
i2c
sx9324
chip.h
Generated by
1.9.1