aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
Commit message (Expand)AuthorAge
* Revert "[PATCH] Fix d_path for lazy unmounts"Linus Torvalds2007-02-13
* [PATCH] Fix d_path for lazy unmountsAndreas Gruenbacher2007-02-12
* [PATCH] dcache: avoid RCU for never-hashed dentriesEric Dumazet2006-12-07
* [PATCH] slab: remove kmem_cache_tChristoph Lameter2006-12-07
* [PATCH] VFS: Fix an error in unused dentry countingDavid Howells2006-10-28
* [PATCH] missing unused dentry in prune_dcache()?Vasily Averin2006-10-28
* [PATCH] VFS: Make d_materialise_unique() enforce directory uniquenessTrond Myklebust2006-10-21
* [PATCH] VFS: Destroy the dentries contributed by a superblock on unmountingDavid Howells2006-10-11
* [PATCH] knfsd: close a race-opportunity in d_splice_aliasNeilBrown2006-10-04
* [PATCH] BLOCK: Move extern declarations out of fs/*.c into header files [try #6]David Howells2006-09-30
* NFS: Add dentry materialisation opDavid Howells2006-09-22
* [PATCH] lockdep: annotate dcacheIngo Molnar2006-07-03
* [PATCH] lockdep: locking init debugging improvementIngo Molnar2006-07-03
* Remove obsolete #include <linux/config.h>Jörn Engel2006-06-30
* [PATCH] core: use list_move()Akinobu Mita2006-06-26
* [PATCH] use list_add_tail() instead of list_add()Akinobu Mita2006-06-26
* [PATCH] remove unlikely(sb) in prune_dcacheHua Zhong2006-06-25
* [PATCH] VFS: Permit filesystem to override root dentry on mountDavid Howells2006-06-23
* [PATCH] prune_one_dentry() tweaksAndrew Morton2006-06-22
* [PATCH] Fix dcache race during umountNeilBrown2006-06-22
* [PATCH] dcache: Add helper d_hash_and_lookupEric W. Biederman2006-03-31
* [PATCH] inotify: IN_DELETE events missingAmy Griffis2006-03-31
* Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivialLinus Torvalds2006-03-26
|\
| * Remove ugly debugging stuffArtem B. Bityuckiy2006-03-26
| * BUG_ON() Conversion in fs/dcache.cEric Sesterhenn2006-03-26
* | [PATCH] Use __read_mostly on some hot fs variablesEric Dumazet2006-03-26
|/
* [PATCH] Reduce sched latency in shrink_dcache_sb()Kirill Korotaev2006-03-25
* [PATCH] inotify: lock avoidance with parent watch status in dentryNick Piggin2006-03-25
* [PATCH] Optimise d_find_alias()David Howells2006-03-25
* [PATCH] cpuset memory spread slab cache hooksPaul Jackson2006-03-24
* [PATCH] fix file countingDipankar Sarma2006-03-08
* [PATCH] make "struct d_cookie" depend on CONFIG_PROFILINGMarcelo Tosatti2006-02-03
* [PATCH] Unlinline a bunch of other functionsArjan van de Ven2006-01-14
* [PATCH] d_instantiate_unique / NFS inode leakageOleg Drokin2006-01-10
* [PATCH] shrink dentry structEric Dumazet2006-01-08
* [PATCH] Remove hlist_for_each_rcu() API, convert existing use to hlist_for_ea...Paul E. McKenney2005-11-07
* [PATCH] gfp_t: fs/*Al Viro2005-10-28
* Make fsnotify possibly work better for the inode removal caseLinus Torvalds2005-09-19
* [PATCH] janitor: fs/dcache.c: list_for_each*Domen Puncer2005-09-10
* [PATCH] fsnotify_name/inoderemoveJohn McCutchan2005-08-08
* [PATCH] make some things staticAdrian Bunk2005-05-05
* Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds2005-04-16
EP7_IRQ_FLG 0x0080 #define RESET_IRQ_FLG 0x0100 #define SOF_EOP_IRQ_FLG 0x0200 #define ID_IRQ_FLG 0x4000 #define VBUS_IRQ_FLG 0x8000 /* USB Host only registers */ /* ======================= */ /* Host n Control Register */ #define HOST_CTL_REG(x) ((x) ? 0xC0A0 : 0xC080) #define PREAMBLE_EN 0x0080 /* Preamble enable */ #define SEQ_SEL 0x0040 /* Data Toggle Sequence Bit Select */ #define ISO_EN 0x0010 /* Isochronous enable */ #define ARM_EN 0x0001 /* Arm operation */ /* Host n Interrupt Enable Register */ #define HOST_IRQ_EN_REG(x) ((x) ? 0xC0AC : 0xC08C) #define SOF_EOP_IRQ_EN 0x0200 /* SOF/EOP Interrupt Enable */ #define SOF_EOP_TMOUT_IRQ_EN 0x0800 /* SOF/EOP Timeout Interrupt Enable */ #define ID_IRQ_EN 0x4000 /* ID interrupt enable */ #define VBUS_IRQ_EN 0x8000 /* VBUS interrupt enable */ #define DONE_IRQ_EN 0x0001 /* Done Interrupt Enable */ /* USB status register */ #define HOST_STAT_MASK 0x02FD #define PORT_CONNECT_CHANGE(x) ((x) ? 0x0020 : 0x0010) #define PORT_SE0_STATUS(x) ((x) ? 0x0008 : 0x0004) /* Host Frame Register */ #define HOST_FRAME_REG(x) ((x) ? 0xC0B6 : 0xC096) #define HOST_FRAME_MASK 0x07FF /* USB Peripheral only registers */ /* ============================= */ /* Device n Port Sel reg */ #define DEVICE_N_PORT_SEL(x) ((x) ? 0xC0A4 : 0xC084) /* Device n Interrupt Enable Register */ #define DEVICE_N_IRQ_EN_REG(x) ((x) ? 0xC0AC : 0xC08C) #define DEVICE_N_ENDPOINT_N_CTL_REG(dev, ep) ((dev) \ ? (0x0280 + (ep << 4)) \ : (0x0200 + (ep << 4))) #define DEVICE_N_ENDPOINT_N_STAT_REG(dev, ep) ((dev) \ ? (0x0286 + (ep << 4)) \ : (0x0206 + (ep << 4))) #define DEVICE_N_ADDRESS(dev) ((dev) ? (0xC0AE) : (0xC08E)) /* HPI registers */ /* ============= */ /* HPI Status register */ #define SOFEOP_FLG(x) (1 << ((x) ? 12 : 10)) #define SIEMSG_FLG(x) (1 << (4 + (x))) #define RESET_FLG(x) ((x) ? 0x0200 : 0x0002) #define DONE_FLG(x) (1 << (2 + (x))) #define RESUME_FLG(x) (1 << (6 + (x))) #define MBX_OUT_FLG 0x0001 /* Message out available */ #define MBX_IN_FLG 0x0100 #define ID_FLG 0x4000 #define VBUS_FLG 0x8000 /* Interrupt routing register */ #define HPI_IRQ_ROUTING_REG 0x0142 #define HPI_SWAP_ENABLE(x) ((x) ? 0x0100 : 0x0001) #define RESET_TO_HPI_ENABLE(x) ((x) ? 0x0200 : 0x0002) #define DONE_TO_HPI_ENABLE(x) ((x) ? 0x0008 : 0x0004) #define RESUME_TO_HPI_ENABLE(x) ((x) ? 0x0080 : 0x0040) #define SOFEOP_TO_HPI_EN(x) ((x) ? 0x2000 : 0x0800) #define SOFEOP_TO_CPU_EN(x) ((x) ? 0x1000 : 0x0400) #define ID_TO_HPI_ENABLE 0x4000 #define VBUS_TO_HPI_ENABLE 0x8000 /* SIE msg registers */ #define SIEMSG_REG(x) ((x) ? 0x0148 : 0x0144) #define HUSB_TDListDone 0x1000 #define SUSB_EP0_MSG 0x0001 #define SUSB_EP1_MSG 0x0002 #define SUSB_EP2_MSG 0x0004 #define SUSB_EP3_MSG 0x0008 #define SUSB_EP4_MSG 0x0010 #define SUSB_EP5_MSG 0x0020 #define SUSB_EP6_MSG 0x0040 #define SUSB_EP7_MSG 0x0080 #define SUSB_RST_MSG 0x0100 #define SUSB_SOF_MSG 0x0200 #define SUSB_CFG_MSG 0x0400 #define SUSB_SUS_MSG 0x0800 #define SUSB_ID_MSG 0x4000 #define SUSB_VBUS_MSG 0x8000 /* BIOS interrupt routines */ #define SUSBx_RECEIVE_INT(x) ((x) ? 97 : 81) #define SUSBx_SEND_INT(x) ((x) ? 96 : 80) #define SUSBx_DEV_DESC_VEC(x) ((x) ? 0x00D4 : 0x00B4) #define SUSBx_CONF_DESC_VEC(x) ((x) ? 0x00D6 : 0x00B6) #define SUSBx_STRING_DESC_VEC(x) ((x) ? 0x00D8 : 0x00B8) #define CY_HCD_BUF_ADDR 0x500 /* Base address for host */ #define SIE_TD_SIZE 0x200 /* size of the td list */ #define SIE_TD_BUF_SIZE 0x400 /* size of the data buffer */ #define SIE_TD_OFFSET(host) ((host) ? (SIE_TD_SIZE+SIE_TD_BUF_SIZE) : 0) #define SIE_BUF_OFFSET(host) (SIE_TD_OFFSET(host) + SIE_TD_SIZE) /* Base address of HCD + 2 x TD_SIZE + 2 x TD_BUF_SIZE */ #define CY_UDC_REQ_HEADER_BASE 0x1100 /* 8- byte request headers for IN/OUT transfers */ #define CY_UDC_REQ_HEADER_SIZE 8 #define CY_UDC_REQ_HEADER_ADDR(ep_num) (CY_UDC_REQ_HEADER_BASE + \ ((ep_num) * CY_UDC_REQ_HEADER_SIZE)) #define CY_UDC_DESC_BASE_ADDRESS (CY_UDC_REQ_HEADER_ADDR(8)) #define CY_UDC_BIOS_REPLACE_BASE 0x1800 #define CY_UDC_REQ_BUFFER_BASE 0x2000 #define CY_UDC_REQ_BUFFER_SIZE 0x0400 #define CY_UDC_REQ_BUFFER_ADDR(ep_num) (CY_UDC_REQ_BUFFER_BASE + \ ((ep_num) * CY_UDC_REQ_BUFFER_SIZE)) /* --------------------------------------------------------------------- * Driver data structures */ struct c67x00_device; /** * struct c67x00_sie - Common data associated with a SIE * @lock: lock to protect this struct and the associated chip registers * @private_data: subdriver dependent data * @irq: subdriver dependent irq handler, set NULL when not used * @dev: link to common driver structure * @sie_num: SIE number on chip, starting from 0 * @mode: SIE mode (host/peripheral/otg/not used) */ struct c67x00_sie { /* Entries to be used by the subdrivers */ spinlock_t lock; /* protect this structure */ void *private_data; void (*irq) (struct c67x00_sie *sie, u16 int_status, u16 msg); /* Read only: */ struct c67x00_device *dev; int sie_num; int mode; }; #define sie_dev(s) (&(s)->dev->pdev->dev) /** * struct c67x00_lcp */ struct c67x00_lcp { /* Internal use only */ struct mutex mutex; struct completion msg_received; u16 last_msg; }; /* * struct c67x00_hpi */ struct c67x00_hpi { void __iomem *base; int regstep; spinlock_t lock; struct c67x00_lcp lcp; }; #define C67X00_SIES 2 #define C67X00_PORTS 2 /** * struct c67x00_device - Common data associated with a c67x00 instance * @hpi: hpi addresses * @sie: array of sie's on this chip * @pdev: platform device of instance * @pdata: configuration provided by the platform */ struct c67x00_device { struct c67x00_hpi hpi; struct c67x00_sie sie[C67X00_SIES]; struct platform_device *pdev; struct c67x00_platform_data *pdata; }; /* --------------------------------------------------------------------- * Low level interface functions */ /* Host Port Interface (HPI) functions */ u16 c67x00_ll_hpi_status(struct c67x00_device *dev); void c67x00_ll_hpi_reg_init(struct c67x00_device *dev); void c67x00_ll_hpi_enable_sofeop(struct c67x00_sie *sie); void c67x00_ll_hpi_disable_sofeop(struct c67x00_sie *sie); /* General functions */ u16 c67x00_ll_fetch_siemsg(struct c67x00_device *dev, int sie_num); u16 c67x00_ll_get_usb_ctl(struct c67x00_sie *sie); void c67x00_ll_usb_clear_status(struct c67x00_sie *sie, u16 bits); u16 c67x00_ll_usb_get_status(struct c67x00_sie *sie); void c67x00_ll_write_mem_le16(struct c67x00_device *dev, u16 addr, void *data, int len); void c67x00_ll_read_mem_le16(struct c67x00_device *dev, u16 addr, void *data, int len); /* Called by c67x00_irq to handle lcp interrupts */ void c67x00_ll_irq(struct c67x00_device *dev, u16 int_status); /* Setup and teardown */ void c67x00_ll_init(struct c67x00_device *dev); void c67x00_ll_release(struct c67x00_device *dev); int c67x00_ll_reset(struct c67x00_device *dev); #endif /* _USB_C67X00_H */