xref: /dflybsd-src/sys/dev/drm/include/linux/dmi.h (revision eb0e71460f3a21be2d9efc2391a834f95ba94974)
1dbd91184SFrançois Tigeot /*
2*eb0e7146SFrançois Tigeot  * Copyright (c) 2015-2019 François Tigeot <ftigeot@wolfpond.org>
3dbd91184SFrançois Tigeot  * All rights reserved.
4dbd91184SFrançois Tigeot  *
5dbd91184SFrançois Tigeot  * Redistribution and use in source and binary forms, with or without
6dbd91184SFrançois Tigeot  * modification, are permitted provided that the following conditions
7dbd91184SFrançois Tigeot  * are met:
8dbd91184SFrançois Tigeot  * 1. Redistributions of source code must retain the above copyright
9dbd91184SFrançois Tigeot  *    notice unmodified, this list of conditions, and the following
10dbd91184SFrançois Tigeot  *    disclaimer.
11dbd91184SFrançois Tigeot  * 2. Redistributions in binary form must reproduce the above copyright
12dbd91184SFrançois Tigeot  *    notice, this list of conditions and the following disclaimer in the
13dbd91184SFrançois Tigeot  *    documentation and/or other materials provided with the distribution.
14dbd91184SFrançois Tigeot  *
15dbd91184SFrançois Tigeot  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16dbd91184SFrançois Tigeot  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17dbd91184SFrançois Tigeot  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18dbd91184SFrançois Tigeot  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19dbd91184SFrançois Tigeot  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20dbd91184SFrançois Tigeot  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21dbd91184SFrançois Tigeot  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22dbd91184SFrançois Tigeot  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23dbd91184SFrançois Tigeot  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24dbd91184SFrançois Tigeot  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25dbd91184SFrançois Tigeot  */
26dbd91184SFrançois Tigeot 
27dbd91184SFrançois Tigeot #ifndef _LINUX_DMI_H_
28dbd91184SFrançois Tigeot #define _LINUX_DMI_H_
29dbd91184SFrançois Tigeot 
30c30871e1SFrançois Tigeot #include <linux/list.h>
31c30871e1SFrançois Tigeot #include <linux/kobject.h>
32dbd91184SFrançois Tigeot #include <linux/mod_devicetable.h>
33dbd91184SFrançois Tigeot 
34be348e9fSFrançois Tigeot enum dmi_field {
35be348e9fSFrançois Tigeot         DMI_NONE,
36be348e9fSFrançois Tigeot         DMI_BIOS_VENDOR,
37be348e9fSFrançois Tigeot         DMI_BIOS_VERSION,
38be348e9fSFrançois Tigeot         DMI_BIOS_DATE,
39be348e9fSFrançois Tigeot         DMI_SYS_VENDOR,
40be348e9fSFrançois Tigeot         DMI_PRODUCT_NAME,
41be348e9fSFrançois Tigeot         DMI_PRODUCT_VERSION,
42be348e9fSFrançois Tigeot         DMI_PRODUCT_SERIAL,
43be348e9fSFrançois Tigeot         DMI_PRODUCT_UUID,
44be348e9fSFrançois Tigeot         DMI_BOARD_VENDOR,
45be348e9fSFrançois Tigeot         DMI_BOARD_NAME,
46be348e9fSFrançois Tigeot         DMI_BOARD_VERSION,
47be348e9fSFrançois Tigeot         DMI_BOARD_SERIAL,
48be348e9fSFrançois Tigeot         DMI_BOARD_ASSET_TAG,
49be348e9fSFrançois Tigeot         DMI_CHASSIS_VENDOR,
50be348e9fSFrançois Tigeot         DMI_CHASSIS_TYPE,
51be348e9fSFrançois Tigeot         DMI_CHASSIS_VERSION,
52be348e9fSFrançois Tigeot         DMI_CHASSIS_SERIAL,
53be348e9fSFrançois Tigeot         DMI_CHASSIS_ASSET_TAG,
54be348e9fSFrançois Tigeot         DMI_STRING_MAX,
55be348e9fSFrançois Tigeot };
56be348e9fSFrançois Tigeot 
57*eb0e7146SFrançois Tigeot extern bool dmi_match(enum dmi_field f, const char *str);
58*eb0e7146SFrançois Tigeot 
59dbd91184SFrançois Tigeot #endif	/* _LINUX_DMI_H_ */
60