pci.c (2fc2991175bf77395e6b15fe6b2304d3bf72da40) | pci.c (69f34c98c1416eb74c55e38a21dbf3e294966514) |
---|---|
1/* 2 * linux/drivers/mtd/maps/pci.c 3 * 4 * Copyright (C) 2001 Russell King, All rights reserved. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. 9 * | 1/* 2 * linux/drivers/mtd/maps/pci.c 3 * 4 * Copyright (C) 2001 Russell King, All rights reserved. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. 9 * |
10 * $Id: pci.c,v 1.10 2005/03/18 14:04:35 gleixner Exp $ 11 * | 10 * $Id: pci.c,v 1.13 2005/11/07 11:14:27 gleixner Exp $ 11 * |
12 * Generic PCI memory map driver. We support the following boards: 13 * - Intel IQ80310 ATU. 14 * - Intel EBSA285 (blank rom programming mode). Tested working 27/09/2001 15 */ 16#include <linux/module.h> 17#include <linux/kernel.h> 18#include <linux/pci.h> 19#include <linux/init.h> --- 13 unchanged lines hidden (view full) --- 33}; 34 35struct map_pci_info { 36 struct map_info map; 37 void __iomem *base; 38 void (*exit)(struct pci_dev *dev, struct map_pci_info *map); 39 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs); 40 struct pci_dev *dev; | 12 * Generic PCI memory map driver. We support the following boards: 13 * - Intel IQ80310 ATU. 14 * - Intel EBSA285 (blank rom programming mode). Tested working 27/09/2001 15 */ 16#include <linux/module.h> 17#include <linux/kernel.h> 18#include <linux/pci.h> 19#include <linux/init.h> --- 13 unchanged lines hidden (view full) --- 33}; 34 35struct map_pci_info { 36 struct map_info map; 37 void __iomem *base; 38 void (*exit)(struct pci_dev *dev, struct map_pci_info *map); 39 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs); 40 struct pci_dev *dev; |
41}; | 41}; |
42 43static map_word mtd_pci_read8(struct map_info *_map, unsigned long ofs) 44{ 45 struct map_pci_info *map = (struct map_pci_info *)_map; 46 map_word val; 47 val.x[0]= readb(map->base + map->translate(map, ofs)); 48// printk("read8 : %08lx => %02x\n", ofs, val.x[0]); 49 return val; --- 340 unchanged lines hidden --- | 42 43static map_word mtd_pci_read8(struct map_info *_map, unsigned long ofs) 44{ 45 struct map_pci_info *map = (struct map_pci_info *)_map; 46 map_word val; 47 val.x[0]= readb(map->base + map->translate(map, ofs)); 48// printk("read8 : %08lx => %02x\n", ofs, val.x[0]); 49 return val; --- 340 unchanged lines hidden --- |