mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-19 02:03:06 +00:00
abd48b0b5c
Get rid of asc_cpu_stop() which was never a thing. The CPU start bit should always be off in the steady state, it is only used momentarily to start the CPU. Signed-off-by: Hector Martin <marcan@marcan.st>
29 lines
597 B
C
29 lines
597 B
C
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef ASC_H
|
|
#define ASC_H
|
|
|
|
#include "types.h"
|
|
|
|
struct asc_message {
|
|
u64 msg0;
|
|
u32 msg1;
|
|
};
|
|
|
|
typedef struct asc_dev asc_dev_t;
|
|
|
|
asc_dev_t *asc_init(const char *path);
|
|
void asc_free(asc_dev_t *asc);
|
|
|
|
int asc_get_iop_node(asc_dev_t *asc);
|
|
|
|
void asc_cpu_start(asc_dev_t *asc);
|
|
|
|
bool asc_can_recv(asc_dev_t *asc);
|
|
bool asc_can_send(asc_dev_t *asc);
|
|
|
|
bool asc_recv(asc_dev_t *asc, struct asc_message *msg);
|
|
bool asc_recv_timeout(asc_dev_t *asc, struct asc_message *msg, u32 delay_usec);
|
|
bool asc_send(asc_dev_t *asc, const struct asc_message *msg);
|
|
|
|
#endif
|