|  | @@ -404,3 +404,180 @@ struct bfin_can_regs {
 | 
	
		
			
				|  |  |  #define TRS2		0x0004	/* Remote Frame Request For Mailbox 2 */
 | 
	
		
			
				|  |  |  #define TRS3		0x0008	/* Remote Frame Request For Mailbox 3 */
 | 
	
		
			
				|  |  |  #define TRS4		0x0010	/* Remote Frame Request For Mailbox 4 */
 | 
	
		
			
				|  |  | +#define TRS5		0x0020	/* Remote Frame Request For Mailbox 5 */
 | 
	
		
			
				|  |  | +#define TRS6		0x0040	/* Remote Frame Request For Mailbox 6 */
 | 
	
		
			
				|  |  | +#define TRS7		0x0080	/* Remote Frame Request For Mailbox 7 */
 | 
	
		
			
				|  |  | +#define TRS8		0x0100	/* Remote Frame Request For Mailbox 8 */
 | 
	
		
			
				|  |  | +#define TRS9		0x0200	/* Remote Frame Request For Mailbox 9 */
 | 
	
		
			
				|  |  | +#define TRS10		0x0400	/* Remote Frame Request For Mailbox 10 */
 | 
	
		
			
				|  |  | +#define TRS11		0x0800	/* Remote Frame Request For Mailbox 11 */
 | 
	
		
			
				|  |  | +#define TRS12		0x1000	/* Remote Frame Request For Mailbox 12 */
 | 
	
		
			
				|  |  | +#define TRS13		0x2000	/* Remote Frame Request For Mailbox 13 */
 | 
	
		
			
				|  |  | +#define TRS14		0x4000	/* Remote Frame Request For Mailbox 14 */
 | 
	
		
			
				|  |  | +#define TRS15		0x8000	/* Remote Frame Request For Mailbox 15 */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* CAN_TRS2 Masks */
 | 
	
		
			
				|  |  | +#define TRS16		0x0001	/* Remote Frame Request For Mailbox 16 */
 | 
	
		
			
				|  |  | +#define TRS17		0x0002	/* Remote Frame Request For Mailbox 17 */
 | 
	
		
			
				|  |  | +#define TRS18		0x0004	/* Remote Frame Request For Mailbox 18 */
 | 
	
		
			
				|  |  | +#define TRS19		0x0008	/* Remote Frame Request For Mailbox 19 */
 | 
	
		
			
				|  |  | +#define TRS20		0x0010	/* Remote Frame Request For Mailbox 20 */
 | 
	
		
			
				|  |  | +#define TRS21		0x0020	/* Remote Frame Request For Mailbox 21 */
 | 
	
		
			
				|  |  | +#define TRS22		0x0040	/* Remote Frame Request For Mailbox 22 */
 | 
	
		
			
				|  |  | +#define TRS23		0x0080	/* Remote Frame Request For Mailbox 23 */
 | 
	
		
			
				|  |  | +#define TRS24		0x0100	/* Remote Frame Request For Mailbox 24 */
 | 
	
		
			
				|  |  | +#define TRS25		0x0200	/* Remote Frame Request For Mailbox 25 */
 | 
	
		
			
				|  |  | +#define TRS26		0x0400	/* Remote Frame Request For Mailbox 26 */
 | 
	
		
			
				|  |  | +#define TRS27		0x0800	/* Remote Frame Request For Mailbox 27 */
 | 
	
		
			
				|  |  | +#define TRS28		0x1000	/* Remote Frame Request For Mailbox 28 */
 | 
	
		
			
				|  |  | +#define TRS29		0x2000	/* Remote Frame Request For Mailbox 29 */
 | 
	
		
			
				|  |  | +#define TRS30		0x4000	/* Remote Frame Request For Mailbox 30 */
 | 
	
		
			
				|  |  | +#define TRS31		0x8000	/* Remote Frame Request For Mailbox 31 */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* CAN_AA1 Masks */
 | 
	
		
			
				|  |  | +#define AA0			0x0001	/* Aborted Message In Mailbox 0 */
 | 
	
		
			
				|  |  | +#define AA1			0x0002	/* Aborted Message In Mailbox 1 */
 | 
	
		
			
				|  |  | +#define AA2			0x0004	/* Aborted Message In Mailbox 2 */
 | 
	
		
			
				|  |  | +#define AA3			0x0008	/* Aborted Message In Mailbox 3 */
 | 
	
		
			
				|  |  | +#define AA4			0x0010	/* Aborted Message In Mailbox 4 */
 | 
	
		
			
				|  |  | +#define AA5			0x0020	/* Aborted Message In Mailbox 5 */
 | 
	
		
			
				|  |  | +#define AA6			0x0040	/* Aborted Message In Mailbox 6 */
 | 
	
		
			
				|  |  | +#define AA7			0x0080	/* Aborted Message In Mailbox 7 */
 | 
	
		
			
				|  |  | +#define AA8			0x0100	/* Aborted Message In Mailbox 8 */
 | 
	
		
			
				|  |  | +#define AA9			0x0200	/* Aborted Message In Mailbox 9 */
 | 
	
		
			
				|  |  | +#define AA10		0x0400	/* Aborted Message In Mailbox 10 */
 | 
	
		
			
				|  |  | +#define AA11		0x0800	/* Aborted Message In Mailbox 11 */
 | 
	
		
			
				|  |  | +#define AA12		0x1000	/* Aborted Message In Mailbox 12 */
 | 
	
		
			
				|  |  | +#define AA13		0x2000	/* Aborted Message In Mailbox 13 */
 | 
	
		
			
				|  |  | +#define AA14		0x4000	/* Aborted Message In Mailbox 14 */
 | 
	
		
			
				|  |  | +#define AA15		0x8000	/* Aborted Message In Mailbox 15 */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* CAN_AA2 Masks */
 | 
	
		
			
				|  |  | +#define AA16		0x0001	/* Aborted Message In Mailbox 16 */
 | 
	
		
			
				|  |  | +#define AA17		0x0002	/* Aborted Message In Mailbox 17 */
 | 
	
		
			
				|  |  | +#define AA18		0x0004	/* Aborted Message In Mailbox 18 */
 | 
	
		
			
				|  |  | +#define AA19		0x0008	/* Aborted Message In Mailbox 19 */
 | 
	
		
			
				|  |  | +#define AA20		0x0010	/* Aborted Message In Mailbox 20 */
 | 
	
		
			
				|  |  | +#define AA21		0x0020	/* Aborted Message In Mailbox 21 */
 | 
	
		
			
				|  |  | +#define AA22		0x0040	/* Aborted Message In Mailbox 22 */
 | 
	
		
			
				|  |  | +#define AA23		0x0080	/* Aborted Message In Mailbox 23 */
 | 
	
		
			
				|  |  | +#define AA24		0x0100	/* Aborted Message In Mailbox 24 */
 | 
	
		
			
				|  |  | +#define AA25		0x0200	/* Aborted Message In Mailbox 25 */
 | 
	
		
			
				|  |  | +#define AA26		0x0400	/* Aborted Message In Mailbox 26 */
 | 
	
		
			
				|  |  | +#define AA27		0x0800	/* Aborted Message In Mailbox 27 */
 | 
	
		
			
				|  |  | +#define AA28		0x1000	/* Aborted Message In Mailbox 28 */
 | 
	
		
			
				|  |  | +#define AA29		0x2000	/* Aborted Message In Mailbox 29 */
 | 
	
		
			
				|  |  | +#define AA30		0x4000	/* Aborted Message In Mailbox 30 */
 | 
	
		
			
				|  |  | +#define AA31		0x8000	/* Aborted Message In Mailbox 31 */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* CAN_TA1 Masks */
 | 
	
		
			
				|  |  | +#define TA0			0x0001	/* Transmit Successful From Mailbox 0 */
 | 
	
		
			
				|  |  | +#define TA1			0x0002	/* Transmit Successful From Mailbox 1 */
 | 
	
		
			
				|  |  | +#define TA2			0x0004	/* Transmit Successful From Mailbox 2 */
 | 
	
		
			
				|  |  | +#define TA3			0x0008	/* Transmit Successful From Mailbox 3 */
 | 
	
		
			
				|  |  | +#define TA4			0x0010	/* Transmit Successful From Mailbox 4 */
 | 
	
		
			
				|  |  | +#define TA5			0x0020	/* Transmit Successful From Mailbox 5 */
 | 
	
		
			
				|  |  | +#define TA6			0x0040	/* Transmit Successful From Mailbox 6 */
 | 
	
		
			
				|  |  | +#define TA7			0x0080	/* Transmit Successful From Mailbox 7 */
 | 
	
		
			
				|  |  | +#define TA8			0x0100	/* Transmit Successful From Mailbox 8 */
 | 
	
		
			
				|  |  | +#define TA9			0x0200	/* Transmit Successful From Mailbox 9 */
 | 
	
		
			
				|  |  | +#define TA10		0x0400	/* Transmit Successful From Mailbox 10 */
 | 
	
		
			
				|  |  | +#define TA11		0x0800	/* Transmit Successful From Mailbox 11 */
 | 
	
		
			
				|  |  | +#define TA12		0x1000	/* Transmit Successful From Mailbox 12 */
 | 
	
		
			
				|  |  | +#define TA13		0x2000	/* Transmit Successful From Mailbox 13 */
 | 
	
		
			
				|  |  | +#define TA14		0x4000	/* Transmit Successful From Mailbox 14 */
 | 
	
		
			
				|  |  | +#define TA15		0x8000	/* Transmit Successful From Mailbox 15 */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* CAN_TA2 Masks */
 | 
	
		
			
				|  |  | +#define TA16		0x0001	/* Transmit Successful From Mailbox 16 */
 | 
	
		
			
				|  |  | +#define TA17		0x0002	/* Transmit Successful From Mailbox 17 */
 | 
	
		
			
				|  |  | +#define TA18		0x0004	/* Transmit Successful From Mailbox 18 */
 | 
	
		
			
				|  |  | +#define TA19		0x0008	/* Transmit Successful From Mailbox 19 */
 | 
	
		
			
				|  |  | +#define TA20		0x0010	/* Transmit Successful From Mailbox 20 */
 | 
	
		
			
				|  |  | +#define TA21		0x0020	/* Transmit Successful From Mailbox 21 */
 | 
	
		
			
				|  |  | +#define TA22		0x0040	/* Transmit Successful From Mailbox 22 */
 | 
	
		
			
				|  |  | +#define TA23		0x0080	/* Transmit Successful From Mailbox 23 */
 | 
	
		
			
				|  |  | +#define TA24		0x0100	/* Transmit Successful From Mailbox 24 */
 | 
	
		
			
				|  |  | +#define TA25		0x0200	/* Transmit Successful From Mailbox 25 */
 | 
	
		
			
				|  |  | +#define TA26		0x0400	/* Transmit Successful From Mailbox 26 */
 | 
	
		
			
				|  |  | +#define TA27		0x0800	/* Transmit Successful From Mailbox 27 */
 | 
	
		
			
				|  |  | +#define TA28		0x1000	/* Transmit Successful From Mailbox 28 */
 | 
	
		
			
				|  |  | +#define TA29		0x2000	/* Transmit Successful From Mailbox 29 */
 | 
	
		
			
				|  |  | +#define TA30		0x4000	/* Transmit Successful From Mailbox 30 */
 | 
	
		
			
				|  |  | +#define TA31		0x8000	/* Transmit Successful From Mailbox 31 */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* CAN_MBTD Masks */
 | 
	
		
			
				|  |  | +#define TDPTR		0x001F	/* Mailbox To Temporarily Disable */
 | 
	
		
			
				|  |  | +#define TDA			0x0040	/* Temporary Disable Acknowledge */
 | 
	
		
			
				|  |  | +#define TDR			0x0080	/* Temporary Disable Request */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* CAN_RFH1 Masks */
 | 
	
		
			
				|  |  | +#define RFH0		0x0001	/* Enable Automatic Remote Frame Handling For Mailbox 0 */
 | 
	
		
			
				|  |  | +#define RFH1		0x0002	/* Enable Automatic Remote Frame Handling For Mailbox 1 */
 | 
	
		
			
				|  |  | +#define RFH2		0x0004	/* Enable Automatic Remote Frame Handling For Mailbox 2 */
 | 
	
		
			
				|  |  | +#define RFH3		0x0008	/* Enable Automatic Remote Frame Handling For Mailbox 3 */
 | 
	
		
			
				|  |  | +#define RFH4		0x0010	/* Enable Automatic Remote Frame Handling For Mailbox 4 */
 | 
	
		
			
				|  |  | +#define RFH5		0x0020	/* Enable Automatic Remote Frame Handling For Mailbox 5 */
 | 
	
		
			
				|  |  | +#define RFH6		0x0040	/* Enable Automatic Remote Frame Handling For Mailbox 6 */
 | 
	
		
			
				|  |  | +#define RFH7		0x0080	/* Enable Automatic Remote Frame Handling For Mailbox 7 */
 | 
	
		
			
				|  |  | +#define RFH8		0x0100	/* Enable Automatic Remote Frame Handling For Mailbox 8 */
 | 
	
		
			
				|  |  | +#define RFH9		0x0200	/* Enable Automatic Remote Frame Handling For Mailbox 9 */
 | 
	
		
			
				|  |  | +#define RFH10		0x0400	/* Enable Automatic Remote Frame Handling For Mailbox 10 */
 | 
	
		
			
				|  |  | +#define RFH11		0x0800	/* Enable Automatic Remote Frame Handling For Mailbox 11 */
 | 
	
		
			
				|  |  | +#define RFH12		0x1000	/* Enable Automatic Remote Frame Handling For Mailbox 12 */
 | 
	
		
			
				|  |  | +#define RFH13		0x2000	/* Enable Automatic Remote Frame Handling For Mailbox 13 */
 | 
	
		
			
				|  |  | +#define RFH14		0x4000	/* Enable Automatic Remote Frame Handling For Mailbox 14 */
 | 
	
		
			
				|  |  | +#define RFH15		0x8000	/* Enable Automatic Remote Frame Handling For Mailbox 15 */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* CAN_RFH2 Masks */
 | 
	
		
			
				|  |  | +#define RFH16		0x0001	/* Enable Automatic Remote Frame Handling For Mailbox 16 */
 | 
	
		
			
				|  |  | +#define RFH17		0x0002	/* Enable Automatic Remote Frame Handling For Mailbox 17 */
 | 
	
		
			
				|  |  | +#define RFH18		0x0004	/* Enable Automatic Remote Frame Handling For Mailbox 18 */
 | 
	
		
			
				|  |  | +#define RFH19		0x0008	/* Enable Automatic Remote Frame Handling For Mailbox 19 */
 | 
	
		
			
				|  |  | +#define RFH20		0x0010	/* Enable Automatic Remote Frame Handling For Mailbox 20 */
 | 
	
		
			
				|  |  | +#define RFH21		0x0020	/* Enable Automatic Remote Frame Handling For Mailbox 21 */
 | 
	
		
			
				|  |  | +#define RFH22		0x0040	/* Enable Automatic Remote Frame Handling For Mailbox 22 */
 | 
	
		
			
				|  |  | +#define RFH23		0x0080	/* Enable Automatic Remote Frame Handling For Mailbox 23 */
 | 
	
		
			
				|  |  | +#define RFH24		0x0100	/* Enable Automatic Remote Frame Handling For Mailbox 24 */
 | 
	
		
			
				|  |  | +#define RFH25		0x0200	/* Enable Automatic Remote Frame Handling For Mailbox 25 */
 | 
	
		
			
				|  |  | +#define RFH26		0x0400	/* Enable Automatic Remote Frame Handling For Mailbox 26 */
 | 
	
		
			
				|  |  | +#define RFH27		0x0800	/* Enable Automatic Remote Frame Handling For Mailbox 27 */
 | 
	
		
			
				|  |  | +#define RFH28		0x1000	/* Enable Automatic Remote Frame Handling For Mailbox 28 */
 | 
	
		
			
				|  |  | +#define RFH29		0x2000	/* Enable Automatic Remote Frame Handling For Mailbox 29 */
 | 
	
		
			
				|  |  | +#define RFH30		0x4000	/* Enable Automatic Remote Frame Handling For Mailbox 30 */
 | 
	
		
			
				|  |  | +#define RFH31		0x8000	/* Enable Automatic Remote Frame Handling For Mailbox 31 */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* CAN_MBTIF1 Masks */
 | 
	
		
			
				|  |  | +#define MBTIF0		0x0001	/* TX Interrupt Active In Mailbox 0 */
 | 
	
		
			
				|  |  | +#define MBTIF1		0x0002	/* TX Interrupt Active In Mailbox 1 */
 | 
	
		
			
				|  |  | +#define MBTIF2		0x0004	/* TX Interrupt Active In Mailbox 2 */
 | 
	
		
			
				|  |  | +#define MBTIF3		0x0008	/* TX Interrupt Active In Mailbox 3 */
 | 
	
		
			
				|  |  | +#define MBTIF4		0x0010	/* TX Interrupt Active In Mailbox 4 */
 | 
	
		
			
				|  |  | +#define MBTIF5		0x0020	/* TX Interrupt Active In Mailbox 5 */
 | 
	
		
			
				|  |  | +#define MBTIF6		0x0040	/* TX Interrupt Active In Mailbox 6 */
 | 
	
		
			
				|  |  | +#define MBTIF7		0x0080	/* TX Interrupt Active In Mailbox 7 */
 | 
	
		
			
				|  |  | +#define MBTIF8		0x0100	/* TX Interrupt Active In Mailbox 8 */
 | 
	
		
			
				|  |  | +#define MBTIF9		0x0200	/* TX Interrupt Active In Mailbox 9 */
 | 
	
		
			
				|  |  | +#define MBTIF10		0x0400	/* TX Interrupt Active In Mailbox 10 */
 | 
	
		
			
				|  |  | +#define MBTIF11		0x0800	/* TX Interrupt Active In Mailbox 11 */
 | 
	
		
			
				|  |  | +#define MBTIF12		0x1000	/* TX Interrupt Active In Mailbox 12 */
 | 
	
		
			
				|  |  | +#define MBTIF13		0x2000	/* TX Interrupt Active In Mailbox 13 */
 | 
	
		
			
				|  |  | +#define MBTIF14		0x4000	/* TX Interrupt Active In Mailbox 14 */
 | 
	
		
			
				|  |  | +#define MBTIF15		0x8000	/* TX Interrupt Active In Mailbox 15 */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +/* CAN_MBTIF2 Masks */
 | 
	
		
			
				|  |  | +#define MBTIF16		0x0001	/* TX Interrupt Active In Mailbox 16 */
 | 
	
		
			
				|  |  | +#define MBTIF17		0x0002	/* TX Interrupt Active In Mailbox 17 */
 | 
	
		
			
				|  |  | +#define MBTIF18		0x0004	/* TX Interrupt Active In Mailbox 18 */
 | 
	
		
			
				|  |  | +#define MBTIF19		0x0008	/* TX Interrupt Active In Mailbox 19 */
 | 
	
		
			
				|  |  | +#define MBTIF20		0x0010	/* TX Interrupt Active In Mailbox 20 */
 | 
	
		
			
				|  |  | +#define MBTIF21		0x0020	/* TX Interrupt Active In Mailbox 21 */
 | 
	
		
			
				|  |  | +#define MBTIF22		0x0040	/* TX Interrupt Active In Mailbox 22 */
 | 
	
		
			
				|  |  | +#define MBTIF23		0x0080	/* TX Interrupt Active In Mailbox 23 */
 | 
	
		
			
				|  |  | +#define MBTIF24		0x0100	/* TX Interrupt Active In Mailbox 24 */
 | 
	
		
			
				|  |  | +#define MBTIF25		0x0200	/* TX Interrupt Active In Mailbox 25 */
 | 
	
		
			
				|  |  | +#define MBTIF26		0x0400	/* TX Interrupt Active In Mailbox 26 */
 | 
	
		
			
				|  |  | +#define MBTIF27		0x0800	/* TX Interrupt Active In Mailbox 27 */
 | 
	
		
			
				|  |  | +#define MBTIF28		0x1000	/* TX Interrupt Active In Mailbox 28 */
 | 
	
		
			
				|  |  | +#define MBTIF29		0x2000	/* TX Interrupt Active In Mailbox 29 */
 | 
	
		
			
				|  |  | +#define MBTIF30		0x4000	/* TX Interrupt Active In Mailbox 30 */
 |