Exploit databaseDownload repository ZIP
GH-4140da88982b84eb665215cb2539458b
nikitapbst/cve-2019-6260
Sources for CVE-2019-6260
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files64
nikitapbst/cve-2019-6260Revision 448a6209326d
- arch/
- ccan/
- cmd/
- licenses/
- uart/
- .gitignore
- LICENCE
- Makefile
- README.md
- ahb.c
- ahb.h
- array.h
- ast.c
- ast.h
- bits.h
- clk.c
- clk.h
- config.h
- console.h
- debug.c
- debug.h
- devmem.c
- devmem.h
- doit.c
- flash.c
- flash.h
- ilpc.c
- ilpc.h
- l2a.c
- l2a.h
- log.c
- log.h
- lpc.h
- mb.h
- mmio.c
- mmio.h
- otp.c
- otp.h
- p2a.c
- p2a.h
- pci.c
- pci.h
- ppc.h
- priv.c
- priv.h
- prompt.c
- prompt.h
- rev.c
- rev.h
- sfc.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
devmem.h
Text · 694 bytes/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright (C) 2018,2019 IBM Corp. */
#ifndef _DEVMEM_H
#define _DEVMEM_H
#include <stdint.h>
#include <sys/types.h>
struct devmem {
int fd;
void *io;
void *win;
off_t phys;
size_t len;
off_t pgsize;
};
int devmem_init(struct devmem *ctx);
int devmem_destroy(struct devmem *ctx);
int devmem_probe(struct devmem *ctx);
int devmem_read(struct devmem *ctx, uint32_t phys, void *buf, size_t len);
int devmem_write(struct devmem *ctx, uint32_t phys, const void *buf, size_t len);
int devmem_readl(struct devmem *ctx, uint32_t phys, uint32_t *val);
int devmem_writel(struct devmem *ctx, uint32_t phys, uint32_t val);
#endif