#include "rtkit-internal.h"
enum { … };
enum { … };
#define APPLE_RTKIT_MGMT_TYPE …
enum { … };
#define APPLE_RTKIT_MGMT_HELLO_MINVER …
#define APPLE_RTKIT_MGMT_HELLO_MAXVER …
#define APPLE_RTKIT_MGMT_EPMAP_LAST …
#define APPLE_RTKIT_MGMT_EPMAP_BASE …
#define APPLE_RTKIT_MGMT_EPMAP_BITMAP …
#define APPLE_RTKIT_MGMT_EPMAP_REPLY_MORE …
#define APPLE_RTKIT_MGMT_STARTEP_EP …
#define APPLE_RTKIT_MGMT_STARTEP_FLAG …
#define APPLE_RTKIT_MGMT_PWR_STATE …
#define APPLE_RTKIT_CRASHLOG_CRASH …
#define APPLE_RTKIT_BUFFER_REQUEST …
#define APPLE_RTKIT_BUFFER_REQUEST_SIZE …
#define APPLE_RTKIT_BUFFER_REQUEST_IOVA …
#define APPLE_RTKIT_SYSLOG_TYPE …
#define APPLE_RTKIT_SYSLOG_LOG …
#define APPLE_RTKIT_SYSLOG_INIT …
#define APPLE_RTKIT_SYSLOG_N_ENTRIES …
#define APPLE_RTKIT_SYSLOG_MSG_SIZE …
#define APPLE_RTKIT_OSLOG_TYPE …
#define APPLE_RTKIT_OSLOG_INIT …
#define APPLE_RTKIT_OSLOG_ACK …
#define APPLE_RTKIT_MIN_SUPPORTED_VERSION …
#define APPLE_RTKIT_MAX_SUPPORTED_VERSION …
struct apple_rtkit_rx_work { … };
bool apple_rtkit_is_running(struct apple_rtkit *rtk)
{ … }
EXPORT_SYMBOL_GPL(…);
bool apple_rtkit_is_crashed(struct apple_rtkit *rtk)
{ … }
EXPORT_SYMBOL_GPL(…);
static void apple_rtkit_management_send(struct apple_rtkit *rtk, u8 type,
u64 msg)
{ … }
static void apple_rtkit_management_rx_hello(struct apple_rtkit *rtk, u64 msg)
{ … }
static void apple_rtkit_management_rx_epmap(struct apple_rtkit *rtk, u64 msg)
{ … }
static void apple_rtkit_management_rx_iop_pwr_ack(struct apple_rtkit *rtk,
u64 msg)
{ … }
static void apple_rtkit_management_rx_ap_pwr_ack(struct apple_rtkit *rtk,
u64 msg)
{ … }
static void apple_rtkit_management_rx(struct apple_rtkit *rtk, u64 msg)
{ … }
static int apple_rtkit_common_rx_get_buffer(struct apple_rtkit *rtk,
struct apple_rtkit_shmem *buffer,
u8 ep, u64 msg)
{ … }
static void apple_rtkit_free_buffer(struct apple_rtkit *rtk,
struct apple_rtkit_shmem *bfr)
{ … }
static void apple_rtkit_memcpy(struct apple_rtkit *rtk, void *dst,
struct apple_rtkit_shmem *bfr, size_t offset,
size_t len)
{ … }
static void apple_rtkit_crashlog_rx(struct apple_rtkit *rtk, u64 msg)
{ … }
static void apple_rtkit_ioreport_rx(struct apple_rtkit *rtk, u64 msg)
{ … }
static void apple_rtkit_syslog_rx_init(struct apple_rtkit *rtk, u64 msg)
{ … }
static bool should_crop_syslog_char(char c)
{ … }
static void apple_rtkit_syslog_rx_log(struct apple_rtkit *rtk, u64 msg)
{ … }
static void apple_rtkit_syslog_rx(struct apple_rtkit *rtk, u64 msg)
{ … }
static void apple_rtkit_oslog_rx_init(struct apple_rtkit *rtk, u64 msg)
{ … }
static void apple_rtkit_oslog_rx(struct apple_rtkit *rtk, u64 msg)
{ … }
static void apple_rtkit_rx_work(struct work_struct *work)
{ … }
static void apple_rtkit_rx(struct apple_mbox *mbox, struct apple_mbox_msg msg,
void *cookie)
{ … }
int apple_rtkit_send_message(struct apple_rtkit *rtk, u8 ep, u64 message,
struct completion *completion, bool atomic)
{ … }
EXPORT_SYMBOL_GPL(…);
int apple_rtkit_poll(struct apple_rtkit *rtk)
{ … }
EXPORT_SYMBOL_GPL(…);
int apple_rtkit_start_ep(struct apple_rtkit *rtk, u8 endpoint)
{ … }
EXPORT_SYMBOL_GPL(…);
struct apple_rtkit *apple_rtkit_init(struct device *dev, void *cookie,
const char *mbox_name, int mbox_idx,
const struct apple_rtkit_ops *ops)
{ … }
EXPORT_SYMBOL_GPL(…);
static int apple_rtkit_wait_for_completion(struct completion *c)
{ … }
int apple_rtkit_reinit(struct apple_rtkit *rtk)
{ … }
EXPORT_SYMBOL_GPL(…);
static int apple_rtkit_set_ap_power_state(struct apple_rtkit *rtk,
unsigned int state)
{ … }
static int apple_rtkit_set_iop_power_state(struct apple_rtkit *rtk,
unsigned int state)
{ … }
int apple_rtkit_boot(struct apple_rtkit *rtk)
{ … }
EXPORT_SYMBOL_GPL(…);
int apple_rtkit_shutdown(struct apple_rtkit *rtk)
{ … }
EXPORT_SYMBOL_GPL(…);
int apple_rtkit_idle(struct apple_rtkit *rtk)
{ … }
EXPORT_SYMBOL_GPL(…);
int apple_rtkit_quiesce(struct apple_rtkit *rtk)
{ … }
EXPORT_SYMBOL_GPL(…);
int apple_rtkit_wake(struct apple_rtkit *rtk)
{ … }
EXPORT_SYMBOL_GPL(…);
void apple_rtkit_free(struct apple_rtkit *rtk)
{ … }
EXPORT_SYMBOL_GPL(…);
static void apple_rtkit_free_wrapper(void *data)
{ … }
struct apple_rtkit *devm_apple_rtkit_init(struct device *dev, void *cookie,
const char *mbox_name, int mbox_idx,
const struct apple_rtkit_ops *ops)
{ … }
EXPORT_SYMBOL_GPL(…);
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;