ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:24.01 GB of 70.42 GB (34.1%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ usr/ src/ linux-headers-3.0.0-14/ include/ linux/ mfd/ wm8994/ - drwxr-xr-x

Directory:
Viewing file:     core.h (3.04 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * include/linux/mfd/wm8994/core.h -- Core interface for WM8994
 *
 * Copyright 2009 Wolfson Microelectronics PLC.
 *
 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
 *
 *  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.
 *
 */

#ifndef __MFD_WM8994_CORE_H__
#define __MFD_WM8994_CORE_H__

#include <linux/interrupt.h>

enum wm8994_type {
    WM8994 = 0,
    WM8958 = 1,
};

struct regulator_dev;
struct regulator_bulk_data;

#define WM8994_NUM_GPIO_REGS 11
#define WM8994_NUM_LDO_REGS   2
#define WM8994_NUM_IRQ_REGS   2

#define WM8994_IRQ_TEMP_SHUT        0
#define WM8994_IRQ_MIC1_DET        1
#define WM8994_IRQ_MIC1_SHRT        2
#define WM8994_IRQ_MIC2_DET        3
#define WM8994_IRQ_MIC2_SHRT        4
#define WM8994_IRQ_FLL1_LOCK        5
#define WM8994_IRQ_FLL2_LOCK        6
#define WM8994_IRQ_SRC1_LOCK        7
#define WM8994_IRQ_SRC2_LOCK        8
#define WM8994_IRQ_AIF1DRC1_SIG_DET    9
#define WM8994_IRQ_AIF1DRC2_SIG_DET    10
#define WM8994_IRQ_AIF2DRC_SIG_DET    11
#define WM8994_IRQ_FIFOS_ERR        12
#define WM8994_IRQ_WSEQ_DONE        13
#define WM8994_IRQ_DCS_DONE        14
#define WM8994_IRQ_TEMP_WARN        15

/* GPIOs in the chip are numbered from 1-11 */
#define WM8994_IRQ_GPIO(x) (x + WM8994_IRQ_TEMP_WARN)

struct wm8994 {
    struct mutex io_lock;
    struct mutex irq_lock;

    enum wm8994_type type;

    struct device *dev;
    int (*read_dev)(struct wm8994 *wm8994, unsigned short reg,
            int bytes, void *dest);
    int (*write_dev)(struct wm8994 *wm8994, unsigned short reg,
             int bytes, const void *src);

    void *control_data;

    int gpio_base;
    int irq_base;

    int irq;
    u16 irq_masks_cur[WM8994_NUM_IRQ_REGS];
    u16 irq_masks_cache[WM8994_NUM_IRQ_REGS];

    /* Used over suspend/resume */
    bool suspended;
    u16 ldo_regs[WM8994_NUM_LDO_REGS];
    u16 gpio_regs[WM8994_NUM_GPIO_REGS];

    struct regulator_dev *dbvdd;
    int num_supplies;
    struct regulator_bulk_data *supplies;
};

/* Device I/O API */
int wm8994_reg_read(struct wm8994 *wm8994, unsigned short reg);
int wm8994_reg_write(struct wm8994 *wm8994, unsigned short reg,
         unsigned short val);
int wm8994_set_bits(struct wm8994 *wm8994, unsigned short reg,
            unsigned short mask, unsigned short val);
int wm8994_bulk_read(struct wm8994 *wm8994, unsigned short reg,
             int count, u16 *buf);
int wm8994_bulk_write(struct wm8994 *wm8994, unsigned short reg,
             int count, const u16 *buf);


/* Helper to save on boilerplate */
static inline int wm8994_request_irq(struct wm8994 *wm8994, int irq,
                     irq_handler_t handler, const char *name,
                     void *data)
{
    if (!wm8994->irq_base)
        return -EINVAL;
    return request_threaded_irq(wm8994->irq_base + irq, NULL, handler,
                    IRQF_TRIGGER_RISING, name,
                    data);
}
static inline void wm8994_free_irq(struct wm8994 *wm8994, int irq, void *data)
{
    if (!wm8994->irq_base)
        return;
    free_irq(wm8994->irq_base + irq, data);
}

int wm8994_irq_init(struct wm8994 *wm8994);
void wm8994_irq_exit(struct wm8994 *wm8994);

#endif
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.3655 seconds