xref: /aosp_15_r20/external/coreboot/src/include/device/pnp_type.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __DEVICE_PNP_TYPE_H__
4 #define __DEVICE_PNP_TYPE_H__
5 
6 #include <stdint.h>
7 
8 typedef u32 pnp_devfn_t;
9 
10 #define PNP_DEV(PORT, FUNC) (((PORT) << 8) | (FUNC))
11 
12 #if defined(__SIMPLE_DEVICE__)
13 #define ENV_PNP_SIMPLE_DEVICE 1
14 #else
15 #define ENV_PNP_SIMPLE_DEVICE 0
16 #endif
17 
18 #endif /* __DEVICE_PNP_TYPE_H__ */
19