xref: /openbsd/sys/arch/arm64/stand/efiboot/efipxe.h (revision 3e58d19e)
1*3e58d19eSkrw /*	$OpenBSD: efipxe.h,v 1.3 2020/12/09 18:10:18 krw Exp $	*/
233e5575aSpatrick /*
333e5575aSpatrick  * Copyright (c) 2017 Patrick Wildt <patrick@blueri.se>
433e5575aSpatrick  *
533e5575aSpatrick  * Permission to use, copy, modify, and distribute this software for any
633e5575aSpatrick  * purpose with or without fee is hereby granted, provided that the above
733e5575aSpatrick  * copyright notice and this permission notice appear in all copies.
833e5575aSpatrick  *
933e5575aSpatrick  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1033e5575aSpatrick  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1133e5575aSpatrick  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1233e5575aSpatrick  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1333e5575aSpatrick  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1433e5575aSpatrick  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1533e5575aSpatrick  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1633e5575aSpatrick  */
1733e5575aSpatrick 
18b0a12b40Spatrick extern struct netif_driver efinet_driver;
19b0a12b40Spatrick 
20b0a12b40Spatrick int	 efitftp_open(char *path, struct open_file *f);
21b0a12b40Spatrick 
22b0a12b40Spatrick int	 mtftp_open(char *, struct open_file *);
23b0a12b40Spatrick int	 mtftp_close(struct open_file *);
24b0a12b40Spatrick int	 mtftp_read(struct open_file *, void *, size_t, size_t *);
25b0a12b40Spatrick int	 mtftp_write(struct open_file *, void *, size_t, size_t *);
26b0a12b40Spatrick off_t	 mtftp_seek(struct open_file *, off_t, int);
27b0a12b40Spatrick int	 mtftp_stat(struct open_file *, struct stat *);
28b0a12b40Spatrick int	 mtftp_readdir(struct open_file *, char *);
29b0a12b40Spatrick 
3033e5575aSpatrick int	 tftpopen(struct open_file *, ...);
3133e5575aSpatrick int	 tftpclose(struct open_file *);
3233e5575aSpatrick int	 tftpioctl(struct open_file *, u_long, void *);
33*3e58d19eSkrw int	 tftpstrategy(void *, int, daddr_t, size_t, void *, size_t *);
34