69 unsigned int tag_busdevfn;
70 unsigned int tag_offset;
80 memset ( &pci, 0,
sizeof ( pci ) );
83 tag_offset, tag_len );
89 tag_offset += tag_len;
90 for ( i = 0 ; ( ( i < tag_len ) && ( i <
len ) ); i++ ) {
121 DBG (
"PCI could not register settings: %s\n",
#define NULL
NULL pointer (VOID *)
struct arbelprm_rc_send_wqe rc
uint8_t data[48]
Additional event data.
#define __unused
Declare a variable or data structure as unused.
#define DBG(...)
Print a debugging message.
#define INIT_NORMAL
Normal initialisation.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
int pci_read_config_byte(struct pci_device *pci, unsigned int where, uint8_t *value)
Read byte from PCI configuration space.
void * memset(void *dest, int character, size_t len) __nonnull
#define __init_fn(init_order)
Declare an initialisation functon.
#define LIST_HEAD_INIT(list)
Initialise a static list head.
#define PCI_FMT
PCI device debug message format.
#define PCI_ARGS(pci)
PCI device debug message arguments.
static void pci_init(struct pci_device *pci, unsigned int busdevfn)
Initialise PCI device.
static void pci_settings_init(void)
Initialise PCI device settings.
static int pci_settings_applies(struct settings *settings __unused, const struct setting *setting)
Check applicability of PCI device setting.
static int pci_settings_fetch(struct settings *settings __unused, struct setting *setting, void *data, size_t len)
Fetch value of PCI device setting.
static struct settings pci_settings
PCI device settings.
static struct settings_operations pci_settings_operations
PCI device settings operations.
static const struct settings_scope pci_settings_scope
PCI device settings scope.
int register_settings(struct settings *settings, struct settings *parent, const char *name)
Register settings block.
char * strerror(int errno)
Retrieve string representation of error number.
An initialisation function.
const struct settings_scope * scope
Setting scope (or NULL)
const struct setting_type * type
Setting type.
uint64_t tag
Setting tag, if applicable.
Settings block operations.