25 #ifndef LIBSWITCHTEC_GASOPS_H 26 #define LIBSWITCHTEC_GASOPS_H 29 #include "../switchtec_priv.h" 31 int gasop_access_check(
struct switchtec_dev *dev);
32 void gasop_set_partition_info(
struct switchtec_dev *dev);
33 int gasop_cmd(
struct switchtec_dev *dev, uint32_t cmd,
34 const void *payload,
size_t payload_len,
void *resp,
36 int gasop_get_device_id(
struct switchtec_dev *dev);
37 int gasop_get_fw_version(
struct switchtec_dev *dev,
char *buf,
39 int gasop_pff_to_port(
struct switchtec_dev *dev,
int pff,
40 int *partition,
int *port);
41 int gasop_port_to_pff(
struct switchtec_dev *dev,
int partition,
43 int gasop_flash_part(
struct switchtec_dev *dev,
45 enum switchtec_fw_image_part_id_gen3
part);
46 int gasop_event_summary(
struct switchtec_dev *dev,
49 int index,
int flags, uint32_t data[5]);
50 int gasop_event_wait_for(
struct switchtec_dev *dev,
switchtec_event_id
Enumeration of all possible events.
Information about a firmware image or partition.
unsigned pff[SWITCHTEC_MAX_PFF_CSR]
Bitmap of events in each port function.
unsigned part[SWITCHTEC_MAX_PARTS]
Bitmap of events in each partition.