Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
5531d285
Commit
5531d285
authored
Feb 07, 2008
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'release' and 'dmi' into release
parents
acf63867
a64217b9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
39 deletions
+44
-39
drivers/acpi/blacklist.c
drivers/acpi/blacklist.c
+36
-20
drivers/acpi/osl.c
drivers/acpi/osl.c
+8
-8
drivers/firmware/dmi_scan.c
drivers/firmware/dmi_scan.c
+0
-9
include/linux/dmi.h
include/linux/dmi.h
+0
-2
No files found.
drivers/acpi/blacklist.c
View file @
5531d285
...
...
@@ -206,33 +206,35 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
* Disable OSI(Linux) warnings on all "Acer, inc."
*
* _OSI(Linux) disables the latest Windows BIOS code:
* DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 3100"),
* DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5050"),
* DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5100"),
* DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5580"),
* DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 3010"),
* _OSI(Linux) effect unknown:
* DMI_MATCH(DMI_PRODUCT_NAME, "Ferrari 5000"),
*/
{
.
callback
=
dmi_disable_osi_linux
,
.
ident
=
"Acer, inc."
,
.
matches
=
{
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Acer, inc."
),
},
},
/*
* note that dmi_check_system() uses strstr()
* to match sub-strings rather than !strcmp(),
* so "Acer" below matches "Acer, inc." above.
*/
/*
* Disable OSI(Linux) warnings on all "Acer"
*
* _OSI(Linux) effect unknown:
* DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5100"),
* DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5610"),
* DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 7720Z"),
* DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 5520"),
* DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 6460"),
* DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 7510"),
* DMI_MATCH(DMI_PRODUCT_NAME, "Extensa 5220"),
*
* _OSI(Linux) is a NOP:
* DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5315"),
*/
{
.
callback
=
dmi_
unknown
_osi_linux
,
.
callback
=
dmi_
disable
_osi_linux
,
.
ident
=
"Acer"
,
.
matches
=
{
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Acer"
),
...
...
@@ -240,21 +242,22 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
},
/*
* Disable OSI(Linux) warnings on all "Apple Computer, Inc."
* Disable OSI(Linux) warnings on all "Apple Inc."
*
* _OSI(Linux) confirmed to be a NOP:
* DMI_MATCH(DMI_PRODUCT_NAME, "MacBook1,1"),
* DMI_MATCH(DMI_PRODUCT_NAME, "MacBook2,1"),
* DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro2,2"),
* DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro3,1"),
* _OSI(Linux) effect unknown:
* DMI_MATCH(DMI_PRODUCT_NAME, "MacPro2,1"),
* DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro1,1"),
* DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro3,1"),
*/
{
.
callback
=
dmi_disable_osi_linux
,
.
ident
=
"Apple"
,
.
matches
=
{
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Apple
Computer, Inc.
"
),
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Apple"
),
},
},
/*
...
...
@@ -292,13 +295,13 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
* DMI_MATCH(DMI_BOARD_NAME, "IFL91"),
*/
{
.
callback
=
dmi_
unknown
_osi_linux
,
.
callback
=
dmi_
disable
_osi_linux
,
.
ident
=
"Compal"
,
.
matches
=
{
DMI_MATCH
(
DMI_BIOS_VENDOR
,
"COMPAL"
),
},
},
{
/* OSI(Linux) touches USB,
breaks suspend to disk
*/
{
/* OSI(Linux) touches USB,
unknown side-effect
*/
.
callback
=
dmi_disable_osi_linux
,
.
ident
=
"Dell Dimension 5150"
,
.
matches
=
{
...
...
@@ -308,7 +311,7 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
},
{
/* OSI(Linux) is a NOP */
.
callback
=
dmi_disable_osi_linux
,
.
ident
=
"Dell"
,
.
ident
=
"Dell
i1501
"
,
.
matches
=
{
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Dell Inc."
),
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"Inspiron 1501"
),
...
...
@@ -316,7 +319,7 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
},
{
/* OSI(Linux) effect unknown */
.
callback
=
dmi_unknown_osi_linux
,
.
ident
=
"Dell"
,
.
ident
=
"Dell
Latitude D830
"
,
.
matches
=
{
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Dell Inc."
),
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"Latitude D830"
),
...
...
@@ -324,7 +327,7 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
},
{
/* OSI(Linux) effect unknown */
.
callback
=
dmi_unknown_osi_linux
,
.
ident
=
"Dell"
,
.
ident
=
"Dell
OP GX620
"
,
.
matches
=
{
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Dell Inc."
),
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"OptiPlex GX620"
),
...
...
@@ -332,15 +335,23 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
},
{
/* OSI(Linux) effect unknown */
.
callback
=
dmi_unknown_osi_linux
,
.
ident
=
"Dell"
,
.
ident
=
"Dell
PE 1900
"
,
.
matches
=
{
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Dell Inc."
),
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"PowerEdge 1900"
),
},
},
{
/* OSI(Linux) is a NOP */
.
callback
=
dmi_disable_osi_linux
,
.
ident
=
"Dell PE R200"
,
.
matches
=
{
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Dell Inc."
),
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"PowerEdge R200"
),
},
},
{
/* OSI(Linux) touches USB */
.
callback
=
dmi_disable_osi_linux
,
.
ident
=
"Dell"
,
.
ident
=
"Dell
PR 390
"
,
.
matches
=
{
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Dell Inc."
),
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"Precision WorkStation 390"
),
...
...
@@ -356,7 +367,7 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
},
{
/* OSI(Linux) effect unknown */
.
callback
=
dmi_unknown_osi_linux
,
.
ident
=
"Dell"
,
.
ident
=
"Dell
PE SC440
"
,
.
matches
=
{
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Dell Inc."
),
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"PowerEdge SC440"
),
...
...
@@ -472,6 +483,11 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
*
* _OSI(Linux) confirmed to be a NOP:
* DMI_MATCH(DMI_PRODUCT_NAME, "P1-J150B"),
* with DMI_MATCH(DMI_BOARD_NAME, "ROCKY"),
*
* unknown:
* DMI_MATCH(DMI_PRODUCT_NAME, "S1-MDGDG"),
* with DMI_MATCH(DMI_BOARD_NAME, "ROCKY"),
*/
{
.
callback
=
dmi_disable_osi_linux
,
...
...
@@ -514,7 +530,7 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
* DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FZ11M"),
*/
{
.
callback
=
dmi_
unknown
_osi_linux
,
.
callback
=
dmi_
disable
_osi_linux
,
.
ident
=
"Sony"
,
.
matches
=
{
DMI_MATCH
(
DMI_SYS_VENDOR
,
"Sony Corporation"
),
...
...
drivers/acpi/osl.c
View file @
5531d285
...
...
@@ -120,7 +120,7 @@ static char osi_additional_string[OSI_STRING_LENGTH_MAX];
*/
#define OSI_LINUX_ENABLE 0
struct
osi_linux
{
st
atic
st
ruct
osi_linux
{
unsigned
int
enable
:
1
;
unsigned
int
dmi
:
1
;
unsigned
int
cmdline
:
1
;
...
...
@@ -1217,24 +1217,24 @@ acpi_status acpi_os_release_object(acpi_cache_t * cache, void *object)
*
* Returns 0 on success
*/
int
acpi_dmi_dump
(
void
)
static
int
acpi_dmi_dump
(
void
)
{
if
(
!
dmi_available
)
return
-
1
;
printk
(
KERN_NOTICE
PREFIX
"DMI System Vendor: %s
\n
"
,
dmi_get_s
lot
(
DMI_SYS_VENDOR
));
dmi_get_s
ystem_info
(
DMI_SYS_VENDOR
));
printk
(
KERN_NOTICE
PREFIX
"DMI Product Name: %s
\n
"
,
dmi_get_s
lot
(
DMI_PRODUCT_NAME
));
dmi_get_s
ystem_info
(
DMI_PRODUCT_NAME
));
printk
(
KERN_NOTICE
PREFIX
"DMI Product Version: %s
\n
"
,
dmi_get_s
lot
(
DMI_PRODUCT_VERSION
));
dmi_get_s
ystem_info
(
DMI_PRODUCT_VERSION
));
printk
(
KERN_NOTICE
PREFIX
"DMI Board Name: %s
\n
"
,
dmi_get_s
lot
(
DMI_BOARD_NAME
));
dmi_get_s
ystem_info
(
DMI_BOARD_NAME
));
printk
(
KERN_NOTICE
PREFIX
"DMI BIOS Vendor: %s
\n
"
,
dmi_get_s
lot
(
DMI_BIOS_VENDOR
));
dmi_get_s
ystem_info
(
DMI_BIOS_VENDOR
));
printk
(
KERN_NOTICE
PREFIX
"DMI BIOS Date: %s
\n
"
,
dmi_get_s
lot
(
DMI_BIOS_DATE
));
dmi_get_s
ystem_info
(
DMI_BIOS_DATE
));
return
0
;
}
...
...
drivers/firmware/dmi_scan.c
View file @
5531d285
...
...
@@ -489,12 +489,3 @@ int dmi_get_year(int field)
return
year
;
}
/**
* dmi_get_slot - return dmi_ident[slot]
* @slot: index into dmi_ident[]
*/
char
*
dmi_get_slot
(
int
slot
)
{
return
(
dmi_ident
[
slot
]);
}
include/linux/dmi.h
View file @
5531d285
...
...
@@ -79,7 +79,6 @@ extern void dmi_scan_machine(void);
extern
int
dmi_get_year
(
int
field
);
extern
int
dmi_name_in_vendors
(
const
char
*
str
);
extern
int
dmi_available
;
extern
char
*
dmi_get_slot
(
int
slot
);
#else
...
...
@@ -90,7 +89,6 @@ static inline const struct dmi_device * dmi_find_device(int type, const char *na
static
inline
int
dmi_get_year
(
int
year
)
{
return
0
;
}
static
inline
int
dmi_name_in_vendors
(
const
char
*
s
)
{
return
0
;
}
#define dmi_available 0
static
inline
char
*
dmi_get_slot
(
int
slot
)
{
return
NULL
;
}
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment