#include <linux/device.h>
#include <linux/sysfs.h>
#include <linux/types.h>
#include "ipa.h"
#include "ipa_sysfs.h"
#include "ipa_version.h"
static const char *ipa_version_string(struct ipa *ipa)
{ … }
static ssize_t
version_show(struct device *dev, struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(version);
static struct attribute *ipa_attrs[] = …;
const struct attribute_group ipa_attribute_group = …;
static const char *ipa_offload_string(struct ipa *ipa)
{ … }
static ssize_t rx_offload_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(rx_offload);
static ssize_t tx_offload_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(tx_offload);
static struct attribute *ipa_feature_attrs[] = …;
const struct attribute_group ipa_feature_attribute_group = …;
static umode_t ipa_endpoint_id_is_visible(struct kobject *kobj,
struct attribute *attr, int n)
{ … }
static ssize_t endpoint_id_attr_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
#define ENDPOINT_ID_ATTR(_n, _endpoint_name) …
ENDPOINT_ID_ATTR(…);
ENDPOINT_ID_ATTR(…);
static struct attribute *ipa_endpoint_id_attrs[] = …;
const struct attribute_group ipa_endpoint_id_attribute_group = …;
#define MODEM_ATTR(_n, _endpoint_name) …
MODEM_ATTR(…);
MODEM_ATTR(…);
static struct attribute *ipa_modem_attrs[] = …;
const struct attribute_group ipa_modem_attribute_group = …;