Deleted Added
full compact
acpi_machdep.c (130313) acpi_machdep.c (130585)
1/*-
2 * Copyright (c) 2001 Mitsuru IWASAKI
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 Mitsuru IWASAKI
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/i386/acpica/acpi_machdep.c 130313 2004-06-10 20:43:04Z jhb $");
28__FBSDID("$FreeBSD: head/sys/i386/acpica/acpi_machdep.c 130585 2004-06-16 09:47:26Z phk $");
29
30#include <sys/param.h>
31#include <sys/bus.h>
32#include <sys/conf.h>
33#include <sys/fcntl.h>
34#include <sys/kernel.h>
35#include <sys/sysctl.h>
36#include <sys/uio.h>

--- 150 unchanged lines hidden (view full) ---

187 app->ap_acline = 0xff; /* unknown */
188 else
189 app->ap_acline = acline; /* on/off */
190
191 return (0);
192}
193
194static int
29
30#include <sys/param.h>
31#include <sys/bus.h>
32#include <sys/conf.h>
33#include <sys/fcntl.h>
34#include <sys/kernel.h>
35#include <sys/sysctl.h>
36#include <sys/uio.h>

--- 150 unchanged lines hidden (view full) ---

187 app->ap_acline = 0xff; /* unknown */
188 else
189 app->ap_acline = acline; /* on/off */
190
191 return (0);
192}
193
194static int
195apmopen(dev_t dev, int flag, int fmt, d_thread_t *td)
195apmopen(struct cdev *dev, int flag, int fmt, d_thread_t *td)
196{
197 return (0);
198}
199
200static int
196{
197 return (0);
198}
199
200static int
201apmclose(dev_t dev, int flag, int fmt, d_thread_t *td)
201apmclose(struct cdev *dev, int flag, int fmt, d_thread_t *td)
202{
203 return (0);
204}
205
206static int
202{
203 return (0);
204}
205
206static int
207apmioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, d_thread_t *td)
207apmioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, d_thread_t *td)
208{
209 int error = 0;
210 struct acpi_softc *acpi_sc;
211 struct apm_info info;
212 apm_info_old_t aiop;
213
214 acpi_sc = device_get_softc(acpi_dev);
215

--- 60 unchanged lines hidden (view full) ---

276 error = EINVAL;
277 break;
278 }
279
280 return (error);
281}
282
283static int
208{
209 int error = 0;
210 struct acpi_softc *acpi_sc;
211 struct apm_info info;
212 apm_info_old_t aiop;
213
214 acpi_sc = device_get_softc(acpi_dev);
215

--- 60 unchanged lines hidden (view full) ---

276 error = EINVAL;
277 break;
278 }
279
280 return (error);
281}
282
283static int
284apmwrite(dev_t dev, struct uio *uio, int ioflag)
284apmwrite(struct cdev *dev, struct uio *uio, int ioflag)
285{
286 return (uio->uio_resid);
287}
288
289static int
285{
286 return (uio->uio_resid);
287}
288
289static int
290apmpoll(dev_t dev, int events, d_thread_t *td)
290apmpoll(struct cdev *dev, int events, d_thread_t *td)
291{
292 return (0);
293}
294
295static void
296acpi_capm_init(struct acpi_softc *sc)
297{
298 make_dev(&apm_cdevsw, 0, 0, 5, 0664, "apm");

--- 34 unchanged lines hidden ---
291{
292 return (0);
293}
294
295static void
296acpi_capm_init(struct acpi_softc *sc)
297{
298 make_dev(&apm_cdevsw, 0, 0, 5, 0664, "apm");

--- 34 unchanged lines hidden ---