1#ifndef _IPXE_LINUX_API_H
2#define _IPXE_LINUX_API_H
34#define FILE_LICENCE(x)
42#define __KERNEL_STRICT_NAMES
43#include <linux/time.h>
44#include <linux/mman.h>
45#include <linux/fcntl.h>
46#include <linux/ioctl.h>
47#include <linux/poll.h>
49#define MAP_FAILED ( ( void * ) -1 )
72 struct timespec *rem );
75 struct timezone *tz );
79 size_t new_size,
int flags, ... );
97 int (
__asmcall * add_poll ) (
int fd,
int events,
102 int (
__asmcall * get_revents ) (
int idx,
#define __asmcall
Declare a function with standard calling conventions.
uint16_t offset
Offset to command line.
uint32_t addr
Buffer address.
uint32_t type
Operating system type.
static struct sockaddr_in dest_addr
uint16_t size
Buffer size.
static unsigned int count
Number of entries.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
u8 request[0]
List of IEs requested.
void *__asmcall linux_mremap(void *old_address, size_t old_size, size_t new_size, int flags,...)
ssize_t __asmcall linux_write(int fd, const void *buf, size_t count)
int __asmcall linux_usleep(unsigned int usec)
int __asmcall linux_open(const char *pathname, int flags,...)
int __asmcall linux_munmap(void *addr, size_t length)
void __asmcall linux_slirp_pollfds_fill(struct Slirp *slirp, uint32_t *timeout, int(__asmcall *add_poll)(int fd, int events, void *opaque), void *opaque)
int __asmcall linux_bind(int sockfd, const struct sockaddr *addr, size_t addrlen)
void __asmcall linux_slirp_input(struct Slirp *slirp, const uint8_t *pkt, int pkt_len)
int __asmcall linux_gettimeofday(struct timeval *tv, struct timezone *tz)
int __asmcall linux_ioctl(int fd, unsigned long request,...)
int __asmcall linux_close(int fd)
int __asmcall linux_fcntl(int fd, int cmd,...)
ssize_t __asmcall linux_sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, size_t addrlen)
ssize_t __asmcall linux_read(int fd, void *buf, size_t count)
int __asmcall linux_socket(int domain, int type, int protocol)
int __asmcall linux_nanosleep(const struct timespec *req, struct timespec *rem)
void __asmcall linux_slirp_pollfds_poll(struct Slirp *slirp, int select_error, int(__asmcall *get_revents)(int idx, void *opaque), void *opaque)
struct Slirp *__asmcall linux_slirp_new(const struct slirp_config *config, const struct slirp_callbacks *callbacks, void *opaque)
void __asmcall linux_slirp_cleanup(struct Slirp *slirp)
int __asmcall linux_poll(struct pollfd *fds, unsigned int nfds, int timeout)
void *__asmcall linux_mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset)
off_t __asmcall linux_lseek(int fd, off_t offset, int whence)
const char *__asmcall linux_strerror(int linux_errno)
int __asmcall linux_fstat_size(int fd, size_t *size)
uint16_t protocol
Protocol ID.
Slirp device configuration.
Generalized socket address structure.