Deleted Added
full compact
OsdTable.c (150003) OsdTable.c (151948)
1/*-
2 * Copyright (c) 2002 Mitsaru 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

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

24 * SUCH DAMAGE.
25 */
26
27/*
28 * ACPI Table interfaces
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002 Mitsaru 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

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

24 * SUCH DAMAGE.
25 */
26
27/*
28 * ACPI Table interfaces
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/acpica/Osd/OsdTable.c 150003 2005-09-11 18:39:03Z obrien $");
32__FBSDID("$FreeBSD: head/sys/dev/acpica/Osd/OsdTable.c 151948 2005-11-01 22:44:08Z jkim $");
33
34#include <sys/param.h>
35#include <sys/endian.h>
36#include <sys/kernel.h>
37#include <sys/linker.h>
38
39#include <contrib/dev/acpica/acpi.h>
40#include <contrib/dev/acpica/actables.h>

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

99 fake_ssdt.Revision = 2;
100 fake_ssdt.Checksum = 0;
101 sprintf(fake_ssdt.OemId, "%.6s", "FBSD ");
102 sprintf(fake_ssdt.OemTableId, "%.8s", "NullSSDT");
103 fake_ssdt.OemRevision = htole32(1);
104 sprintf(fake_ssdt.AslCompilerId, "%.4s", "FBSD");
105 fake_ssdt.AslCompilerRevision = htole32(1);
106 fake_ssdt.no_op = htole32(0x005c0310); /* Scope(\) */
33
34#include <sys/param.h>
35#include <sys/endian.h>
36#include <sys/kernel.h>
37#include <sys/linker.h>
38
39#include <contrib/dev/acpica/acpi.h>
40#include <contrib/dev/acpica/actables.h>

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

99 fake_ssdt.Revision = 2;
100 fake_ssdt.Checksum = 0;
101 sprintf(fake_ssdt.OemId, "%.6s", "FBSD ");
102 sprintf(fake_ssdt.OemTableId, "%.8s", "NullSSDT");
103 fake_ssdt.OemRevision = htole32(1);
104 sprintf(fake_ssdt.AslCompilerId, "%.4s", "FBSD");
105 fake_ssdt.AslCompilerRevision = htole32(1);
106 fake_ssdt.no_op = htole32(0x005c0310); /* Scope(\) */
107 fake_ssdt.Checksum -= AcpiTbChecksum(&fake_ssdt, sizeof(fake_ssdt));
107 fake_ssdt.Checksum -= AcpiTbGenerateChecksum(&fake_ssdt,
108 sizeof(fake_ssdt));
108 }
109 *NewTable = (void *)&fake_ssdt;
110 }
111
112 return (AE_OK);
113}
109 }
110 *NewTable = (void *)&fake_ssdt;
111 }
112
113 return (AE_OK);
114}