/ src / include / device / pnp_type.h
pnp_type.h
 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__ */