1 /* $NetBSD: compat_mod.h,v 1.12 2024/05/20 01:30:34 christos Exp $ */ 2 3 /*- 4 * Copyright (c) 2013, 2019 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Christos Zoulas. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted provided that the following conditions 12 * are met: 13 * 1. Redistributions of source code must retain the above copyright 14 * notice, this list of conditions and the following disclaimer. 15 * 2. Redistributions in binary form must reproduce the above copyright 16 * notice, this list of conditions and the following disclaimer in the 17 * documentation and/or other materials provided with the distribution. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32 #ifndef _COMPAT_MOD_H 33 #define _COMPAT_MOD_H 34 35 #ifdef COMPAT_110 36 int compat_110_init(void); 37 int compat_110_fini(void); 38 #endif 39 40 #ifdef COMPAT_100 41 int compat_100_init(void); 42 int compat_100_fini(void); 43 int kern_event_100_init(void); 44 int kern_event_100_fini(void); 45 int sys_descrip_100_init(void); 46 int sys_descrip_100_fini(void); 47 #endif 48 49 #ifdef COMPAT_90 50 int compat_90_init(void); 51 int compat_90_fini(void); 52 int vfs_syscalls_90_init(void); 53 int vfs_syscalls_90_fini(void); 54 int net_inet6_nd_90_init(void); 55 int net_inet6_nd_90_fini(void); 56 #endif 57 58 #ifdef COMPAT_80 59 int compat_80_init(void); 60 int compat_80_fini(void); 61 void kern_mod_80_init(void); 62 void kern_mod_80_fini(void); 63 void ifmedia_80_init(void); 64 void ifmedia_80_fini(void); 65 #endif 66 67 #ifdef COMPAT_70 68 int compat_70_init(void); 69 int compat_70_fini(void); 70 #endif 71 72 #ifdef COMPAT_60 73 int compat_60_init(void); 74 int compat_60_fini(void); 75 int kern_time_60_init(void); 76 int kern_time_60_fini(void); 77 int kern_sa_60_init(void); 78 int kern_sa_60_fini(void); 79 void kern_tty_60_init(void); 80 void kern_tty_60_fini(void); 81 #endif 82 83 #ifdef COMPAT_50 84 int compat_50_init(void); 85 int compat_50_fini(void); 86 int kern_50_init(void); 87 int kern_50_fini(void); 88 int kern_time_50_init(void); 89 int kern_time_50_fini(void); 90 int kern_select_50_init(void); 91 int kern_select_50_fini(void); 92 void uvm_50_init(void); 93 void uvm_50_fini(void); 94 int vfs_syscalls_50_init(void); 95 int vfs_syscalls_50_fini(void); 96 void uipc_syscalls_50_init(void); 97 void uipc_syscalls_50_fini(void); 98 void vnd_50_init(void); 99 void vnd_50_fini(void); 100 void rndpseudo_50_init(void); 101 void rndpseudo_50_fini(void); 102 void rtsock_50_init(void); 103 void rtsock_50_fini(void); 104 void kern_uipc_socket_50_init(void); 105 void kern_uipc_socket_50_fini(void); 106 #endif 107 108 #ifdef COMPAT_40 109 int compat_40_init(void); 110 int compat_40_fini(void); 111 void uipc_syscalls_40_init(void); 112 void uipc_syscalls_40_fini(void); 113 int vfs_syscalls_40_init(void); 114 int vfs_syscalls_40_fini(void); 115 void sysmon_power_40_init(void); 116 void sysmon_power_40_fini(void); 117 #endif 118 119 #ifdef COMPAT_30 120 int compat_30_init(void); 121 int compat_30_fini(void); 122 int kern_time_30_init(void); 123 int kern_time_30_fini(void); 124 int vfs_syscalls_30_init(void); 125 int vfs_syscalls_30_fini(void); 126 int uipc_syscalls_30_init(void); 127 int uipc_syscalls_30_fini(void); 128 void bio_30_init(void); 129 void bio_30_fini(void); 130 void vnd_30_init(void); 131 void vnd_30_fini(void); 132 void usb_30_init(void); 133 void usb_30_fini(void); 134 #endif 135 136 #ifdef COMPAT_20 137 int compat_20_init(void); 138 int compat_20_fini(void); 139 int vfs_syscalls_20_init(void); 140 int vfs_syscalls_20_fini(void); 141 void ieee80211_20_init(void); 142 void ieee80211_20_fini(void); 143 void if43_20_init(void); 144 void if43_20_fini(void); 145 #endif 146 147 #ifdef COMPAT_16 148 int compat_16_init(void); 149 int compat_16_fini(void); 150 int kern_sig_16_init(void); 151 int kern_sig_16_fini(void); 152 #endif 153 154 #ifdef COMPAT_14 155 int compat_14_init(void); 156 int compat_14_fini(void); 157 void rtsock_14_init(void); 158 void rtsock_14_fini(void); 159 #endif 160 161 #ifdef COMPAT_13 162 int compat_13_init(void); 163 int compat_13_fini(void); 164 int kern_sig_13_init(void); 165 int kern_sig_13_fini(void); 166 void uvm_13_init(void); 167 void uvm_13_fini(void); 168 #endif 169 170 #ifdef COMPAT_12 171 int compat_12_init(void); 172 int compat_12_fini(void); 173 int kern_xxx_12_init(void); 174 int kern_xxx_12_fini(void); 175 int vm_12_init(void); 176 int vm_12_fini(void); 177 int vfs_syscalls_12_init(void); 178 int vfs_syscalls_12_fini(void); 179 #endif 180 181 #ifdef COMPAT_10 182 int compat_10_init(void); 183 int compat_10_fini(void); 184 void vfs_syscalls_10_init(void); 185 void vfs_syscalls_10_fini(void); 186 #endif 187 188 #ifdef COMPAT_09 189 int compat_09_init(void); 190 int compat_09_fini(void); 191 int kern_info_09_init(void); 192 int kern_info_09_fini(void); 193 #endif 194 195 #ifdef COMPAT_43 196 int compat_43_init(void); 197 int compat_43_fini(void); 198 int kern_exit_43_init(void); 199 int kern_exit_43_fini(void); 200 int kern_info_43_init(void); 201 int kern_info_43_fini(void); 202 int kern_resource_43_init(void); 203 int kern_resource_43_fini(void); 204 int kern_sig_43_init(void); 205 int kern_sig_43_fini(void); 206 int kern_tty_43_init(void); 207 int kern_tty_43_fini(void); 208 int uipc_syscalls_43_init(void); 209 int uipc_syscalls_43_fini(void); 210 int vfs_syscalls_43_init(void); 211 int vfs_syscalls_43_fini(void); 212 int vm_43_init(void); 213 int vm_43_fini(void); 214 int if_43_init(void); 215 int if_43_fini(void); 216 #endif 217 218 #if defined(COMPAT_09) || defined(COMPAT_43) 219 int compat_sysctl_09_43_init(void); 220 int compat_sysctl_09_43_fini(void); 221 #endif 222 223 #endif /* !_COMPAT_MOD_H_ */ 224