ppc85xx_common.c

来自「Linux Kernel 2.6.9 for OMAP1710」· C语言 代码 · 共 47 行

C
47
字号
/* * arch/ppc/syslib/ppc85xx_common.c * * MPC85xx support routines * * Maintainer: Kumar Gala <kumar.gala@freescale.com> * * Copyright 2004 Freescale Semiconductor Inc. * * This program is free software; you can redistribute  it and/or modify it * under  the terms of  the GNU General  Public License as published by the * Free Software Foundation;  either version 2 of the  License, or (at your * option) any later version. */#include <linux/config.h>#include <linux/types.h>#include <linux/module.h>#include <linux/init.h>#include <asm/mpc85xx.h>#include <asm/mmu.h>#include <asm/ocp.h>/* ************************************************************************ *//* Return the value of CCSRBAR for the current board */phys_addr_tget_ccsrbar(void){        return BOARD_CCSRBAR;}/* ************************************************************************ *//* Update the 85xx OCP tables paddr field */voidmpc85xx_update_paddr_ocp(struct ocp_device *dev, void *arg){	phys_addr_t ccsrbar;	if (arg) {		ccsrbar = *(phys_addr_t *)arg;		dev->def->paddr += ccsrbar;	}}EXPORT_SYMBOL(get_ccsrbar);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?