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.38 GB of 70.42 GB (34.62%)
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/ usb/ - drwxr-xr-x

Directory:
Viewing file:     renesas_usbhs.h (3.26 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * Renesas USB
 *
 * Copyright (C) 2011 Renesas Solutions Corp.
 * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */
#ifndef RENESAS_USB_H
#define RENESAS_USB_H
#include <linux/platform_device.h>
#include <linux/usb/ch9.h>

/*
 * module type
 *
 * it will be return value from get_id
 */
enum {
    USBHS_HOST = 0,
    USBHS_GADGET,
    USBHS_MAX,
};

/*
 * callback functions table for driver
 *
 * These functions are called from platform for driver.
 * Callback function's pointer will be set before
 * renesas_usbhs_platform_callback :: hardware_init was called
 */
struct renesas_usbhs_driver_callback {
    int (*notify_hotplug)(struct platform_device *pdev);
};

/*
 * callback functions for platform
 *
 * These functions are called from driver for platform
 */
struct renesas_usbhs_platform_callback {

    /*
     * option:
     *
     * Hardware init function for platform.
     * it is called when driver was probed.
     */
    int (*hardware_init)(struct platform_device *pdev);

    /*
     * option:
     *
     * Hardware exit function for platform.
     * it is called when driver was removed
     */
    void (*hardware_exit)(struct platform_device *pdev);

    /*
     * option:
     *
     * Phy reset for platform
     */
    void (*phy_reset)(struct platform_device *pdev);

    /*
     * get USB ID function
     *  - USBHS_HOST
     *  - USBHS_GADGET
     */
    int (*get_id)(struct platform_device *pdev);

    /*
     * get VBUS status function.
     */
    int (*get_vbus)(struct platform_device *pdev);
};

/*
 * parameters for renesas usbhs
 *
 * some register needs USB chip specific parameters.
 * This struct show it to driver
 */
struct renesas_usbhs_driver_param {
    /*
     * pipe settings
     */
    u32 *pipe_type; /* array of USB_ENDPOINT_XFER_xxx (from ep0) */
    int pipe_size; /* pipe_type array size */

    /*
     * option:
     *
     * for BUSWAIT :: BWAIT
     * */
    int buswait_bwait;

    /*
     * option:
     *
     * delay time from notify_hotplug callback
     */
    int detection_delay;
};

/*
 * option:
 *
 * platform information for renesas_usbhs driver.
 */
struct renesas_usbhs_platform_info {
    /*
     * option:
     *
     * platform set these functions before
     * call platform_add_devices if needed
     */
    struct renesas_usbhs_platform_callback    platform_callback;

    /*
     * driver set these callback functions pointer.
     * platform can use it on callback functions
     */
    struct renesas_usbhs_driver_callback    driver_callback;

    /*
     * option:
     *
     * driver use these param for some register
     */
    struct renesas_usbhs_driver_param    driver_param;
};

/*
 * macro for platform
 */
#define renesas_usbhs_get_info(pdev)\
    ((struct renesas_usbhs_platform_info *)(pdev)->dev.platform_data)

#define renesas_usbhs_call_notify_hotplug(pdev)                \
    ({                                \
        struct renesas_usbhs_driver_callback *dc;        \
        dc = &(renesas_usbhs_get_info(pdev)->driver_callback);    \
        if (dc && dc->notify_hotplug)                \
            dc->notify_hotplug(pdev);            \
    })
#endif /* RENESAS_USB_H */
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.1748 seconds