!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/src/linux-oracle-headers-5.15.0-1040/arch/mips/include/asm/mach-au1x00/   drwxr-xr-x
Free 83.23 GB of 96.73 GB (86.04%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     gpio-au1300.h (2.61 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * gpio-au1300.h -- GPIO control for Au1300 GPIC and compatibles.
 *
 * Copyright (c) 2009-2011 Manuel Lauss <[email protected]>
 */

#ifndef _GPIO_AU1300_H_
#define _GPIO_AU1300_H_

#include <asm/addrspace.h>
#include <asm/io.h>
#include <asm/mach-au1x00/au1000.h>

struct gpio;
struct gpio_chip;

/* with the current GPIC design, up to 128 GPIOs are possible.
 * The only implementation so far is in the Au1300, which has 75 externally
 * available GPIOs.
 */
#define AU1300_GPIO_BASE    0
#define AU1300_GPIO_NUM        75
#define AU1300_GPIO_MAX        (AU1300_GPIO_BASE + AU1300_GPIO_NUM - 1)

#define AU1300_GPIC_ADDR    \
    (void __iomem *)KSEG1ADDR(AU1300_GPIC_PHYS_ADDR)

static inline int au1300_gpio_get_value(unsigned int gpio)
{
    void __iomem *roff = AU1300_GPIC_ADDR;
    int bit;

    gpio -= AU1300_GPIO_BASE;
    roff += GPIC_GPIO_BANKOFF(gpio);
    bit = GPIC_GPIO_TO_BIT(gpio);
    return __raw_readl(roff + AU1300_GPIC_PINVAL) & bit;
}

static inline int au1300_gpio_direction_input(unsigned int gpio)
{
    void __iomem *roff = AU1300_GPIC_ADDR;
    unsigned long bit;

    gpio -= AU1300_GPIO_BASE;

    roff += GPIC_GPIO_BANKOFF(gpio);
    bit = GPIC_GPIO_TO_BIT(gpio);
    __raw_writel(bit, roff + AU1300_GPIC_DEVCLR);
    wmb();

    return 0;
}

static inline int au1300_gpio_set_value(unsigned int gpio, int v)
{
    void __iomem *roff = AU1300_GPIC_ADDR;
    unsigned long bit;

    gpio -= AU1300_GPIO_BASE;

    roff += GPIC_GPIO_BANKOFF(gpio);
    bit = GPIC_GPIO_TO_BIT(gpio);
    __raw_writel(bit, roff + (v ? AU1300_GPIC_PINVAL
                    : AU1300_GPIC_PINVALCLR));
    wmb();

    return 0;
}

static inline int au1300_gpio_direction_output(unsigned int gpio, int v)
{
    /* hw switches to output automatically */
    return au1300_gpio_set_value(gpio, v);
}

static inline int au1300_gpio_to_irq(unsigned int gpio)
{
    return AU1300_FIRST_INT + (gpio - AU1300_GPIO_BASE);
}

static inline int au1300_irq_to_gpio(unsigned int irq)
{
    return (irq - AU1300_FIRST_INT) + AU1300_GPIO_BASE;
}

static inline int au1300_gpio_is_valid(unsigned int gpio)
{
    int ret;

    switch (alchemy_get_cputype()) {
    case ALCHEMY_CPU_AU1300:
        ret = ((gpio >= AU1300_GPIO_BASE) && (gpio <= AU1300_GPIO_MAX));
        break;
    default:
        ret = 0;
    }
    return ret;
}

static inline int au1300_gpio_cansleep(unsigned int gpio)
{
    return 0;
}

/* hardware remembers gpio 0-63 levels on powerup */
static inline int au1300_gpio_getinitlvl(unsigned int gpio)
{
    void __iomem *roff = AU1300_GPIC_ADDR;
    unsigned long v;

    if (unlikely(gpio > 63))
        return 0;
    else if (gpio > 31) {
        gpio -= 32;
        roff += 4;
    }

    v = __raw_readl(roff + AU1300_GPIC_RSTVAL);
    return (v >> gpio) & 1;
}

#endif /* _GPIO_AU1300_H_ */

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0044 ]--