Path: blob/master/arch/arm/mach-netx/include/mach/xc.h
10820 views
/*1* arch/arm/mach-netx/include/mach/xc.h2*3* Copyright (C) 2005 Sascha Hauer <[email protected]>, Pengutronix4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 27* as published by the Free Software Foundation.8*9* This program is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU General Public License for more details.13*14* You should have received a copy of the GNU General Public License15* along with this program; if not, write to the Free Software16* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA17*/1819#ifndef __ASM_ARCH_XC_H20#define __ASM_ARCH_XC_H2122struct xc {23int no;24unsigned int type;25unsigned int version;26void __iomem *xpec_base;27void __iomem *xmac_base;28void __iomem *sram_base;29int irq;30struct device *dev;31};3233int xc_reset(struct xc *x);34int xc_stop(struct xc* x);35int xc_start(struct xc *x);36int xc_running(struct xc *x);37int xc_request_firmware(struct xc* x);38struct xc* request_xc(int xcno, struct device *dev);39void free_xc(struct xc *x);4041#endif /* __ASM_ARCH_XC_H */424344