/* can_tolapai.h - definitions for tolapai CAN controller */ /* * Copyright (c) 2007 Wind River Systems, Inc. * * The right to copy, distribute, modify or otherwise make use * of this software may be licensed only pursuant to the terms * of an applicable Wind River license agreement. */ /* modification history -------------------- 01a,04Dec07,d_z written */ /* DESCRIPTION This file contains definitions used for tolapai CAN controller */ #ifndef _TOLAPAI_CAN_H_ #define _TOLAPAI_CAN_H_ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /* external WindNet CAN required functions */ /* * Since all MSCAN devices are internal to the processor, only one * board can exist. */ #define MAX_NUM_TOLAPAI_CAN_BOARDS (1) #define MAX_NUM_TOLAPAI_CAN_CONTROLLERS (2) #define BRD_NDX (0) /* Only one board possible */ #define PCI_CFG_POWER 0xe0 #define PCI_CFG_POWER_CTL 0x3 #define PCI_CFG_SMIA 0xe8 #define PCI_CFG_SMIA_SYS_INT (1<<0) #define PCI_CFG_SMIA_PARITY_INT (1<<1) struct tolapaiCan_DeviceEntry { BOOL inUse; /* data types for the board */ struct WNCAN_Board canBoard; /* data types for each controller on the board */ BOOL allocated [MAX_NUM_TOLAPAI_CAN_CONTROLLERS]; struct WNCAN_Device canDevice [MAX_NUM_TOLAPAI_CAN_CONTROLLERS]; struct WNCAN_Controller canController [MAX_NUM_TOLAPAI_CAN_CONTROLLERS]; can_os_t can_os [MAX_NUM_TOLAPAI_CAN_CONTROLLERS]; }; #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* _TOLAPAI_CAN_H_ */