67 unsigned int tag_busdevfn;
68 unsigned int tag_offset;
78 memset ( &pci, 0,
sizeof ( pci ) );
81 tag_offset, tag_len );
87 tag_offset += tag_len;
88 for ( i = 0 ; ( ( i < tag_len ) && ( i <
len ) ); i++ ) {
119 DBG (
"PCI could not register settings: %s\n",
struct arbelprm_rc_send_wqe rc
static struct settings_operations pci_settings_operations
PCI device settings operations.
static int pci_settings_applies(struct settings *settings __unused, const struct setting *setting)
Check applicability of PCI device setting.
uint64_t tag
Setting tag, if applicable.
#define INIT_NORMAL
Normal initialisation.
static const struct settings_scope pci_settings_scope
PCI device settings scope.
An initialisation function.
static int pci_settings_fetch(struct settings *settings __unused, struct setting *setting, void *data, size_t len)
Fetch value of PCI device setting.
#define __unused
Declare a variable or data structure as unused.
const struct setting_type * type
Setting type.
char * strerror(int errno)
Retrieve string representation of error number.
#define PCI_FMT
PCI device debug message format.
struct init_fn pci_settings_init_fn __init_fn(INIT_NORMAL)
PCI device settings initialiser.
Settings block operations.
static struct settings pci_settings
PCI device settings.
struct list_head siblings
Sibling settings blocks.
#define PCI_ARGS(pci)
PCI device debug message arguments.
uint8_t data[48]
Additional event data.
int(* applies)(struct settings *settings, const struct setting *setting)
Check applicability of setting.
struct list_head children
Child settings blocks.
int register_settings(struct settings *settings, struct settings *parent, const char *name)
Register settings block.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static void pci_init(struct pci_device *pci, unsigned int busdevfn)
Initialise PCI device.
#define DBG(...)
Print a debugging message.
#define LIST_HEAD_INIT(list)
Initialise a static list head.
static void pci_settings_init(void)
Initialise PCI device settings.
const struct settings_scope * scope
Setting scope (or NULL)
#define NULL
NULL pointer (VOID *)
struct refcnt * refcnt
Reference counter.
void * memset(void *dest, int character, size_t len) __nonnull
int pci_read_config_byte(struct pci_device *pci, unsigned int where, uint8_t *value)
Read byte from PCI configuration space.