Version:  2.0.40 2.2.26 2.4.37 3.13 3.14 3.15 3.16 3.17 3.18 3.19 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10

Linux/drivers/pcmcia/bfin_cf_pcmcia.c

  1 /*
  2  * file: drivers/pcmcia/bfin_cf.c
  3  *
  4  * based on: drivers/pcmcia/omap_cf.c
  5  * omap_cf.c -- OMAP 16xx CompactFlash controller driver
  6  *
  7  * Copyright (c) 2005 David Brownell
  8  * Copyright (c) 2006-2008 Michael Hennerich Analog Devices Inc.
  9  *
 10  * bugs:         enter bugs at http://blackfin.uclinux.org/
 11  *
 12  * this program is free software; you can redistribute it and/or modify
 13  * it under the terms of the gnu general public license as published by
 14  * the free software foundation; either version 2, or (at your option)
 15  * any later version.
 16  *
 17  * this program is distributed in the hope that it will be useful,
 18  * but without any warranty; without even the implied warranty of
 19  * merchantability or fitness for a particular purpose.  see the
 20  * gnu general public license for more details.
 21  *
 22  * you should have received a copy of the gnu general public license
 23  * along with this program; see the file copying.
 24  * if not, write to the free software foundation,
 25  * 59 temple place - suite 330, boston, ma 02111-1307, usa.
 26  */
 27 
 28 #include <linux/module.h>
 29 #include <linux/kernel.h>
 30 #include <linux/sched.h>
 31 #include <linux/platform_device.h>
 32 #include <linux/errno.h>
 33 #include <linux/init.h>
 34 #include <linux/slab.h>
 35 #include <linux/delay.h>
 36 #include <linux/interrupt.h>
 37 #include <linux/irq.h>
 38 #include <linux/io.h>
 39 #include <linux/gpio.h>
 40 
 41 #include <pcmcia/ss.h>
 42 #include <pcmcia/cisreg.h>
 43 
 44 #define SZ_1K   0x00000400
 45 #define SZ_8K   0x00002000