MAX_NPORTS
struct port_info port[MAX_NPORTS];
device_t portdev[MAX_NPORTS];
u8 port_type[MAX_NPORTS];
#define PORT_MASK ((1 << MAX_NPORTS) - 1)