Path: blob/master/arch/blackfin/include/asm/bfin_twi.h
15126 views
/*1* bfin_twi.h - interface to Blackfin TWIs2*3* Copyright 2005-2010 Analog Devices Inc.4*5* Licensed under the GPL-2 or later.6*/78#ifndef __ASM_BFIN_TWI_H__9#define __ASM_BFIN_TWI_H__1011#include <linux/types.h>1213/*14* All Blackfin system MMRs are padded to 32bits even if the register15* itself is only 16bits. So use a helper macro to streamline this.16*/17#define __BFP(m) u16 m; u16 __pad_##m1819/*20* bfin twi registers layout21*/22struct bfin_twi_regs {23__BFP(clkdiv);24__BFP(control);25__BFP(slave_ctl);26__BFP(slave_stat);27__BFP(slave_addr);28__BFP(master_ctl);29__BFP(master_stat);30__BFP(master_addr);31__BFP(int_stat);32__BFP(int_mask);33__BFP(fifo_ctl);34__BFP(fifo_stat);35u32 __pad[20];36__BFP(xmt_data8);37__BFP(xmt_data16);38__BFP(rcv_data8);39__BFP(rcv_data16);40};4142#undef __BFP4344#endif454647