003 File Manager
Current Path:
/usr/src/sys/mips/include
usr
/
src
/
sys
/
mips
/
include
/
📁
..
📄
_align.h
(2.4 KB)
📄
_bus.h
(1.94 KB)
📄
_inttypes.h
(8.51 KB)
📄
_limits.h
(4.19 KB)
📄
_stdint.h
(6 KB)
📄
_types.h
(4.98 KB)
📄
abi.h
(3.44 KB)
📄
asm.h
(15.48 KB)
📄
atomic.h
(24.79 KB)
📄
bootinfo.h
(3.31 KB)
📄
bus.h
(27.08 KB)
📄
bus_dma.h
(1.53 KB)
📄
cache.h
(7.58 KB)
📄
cache_mipsNN.h
(4.58 KB)
📄
cache_r4k.h
(15.72 KB)
📄
cca.h
(5.12 KB)
📄
cdefs.h
(2.37 KB)
📄
clock.h
(1 KB)
📄
counter.h
(2.76 KB)
📄
cpu.h
(3.3 KB)
📄
cpufunc.h
(11.47 KB)
📄
cpuinfo.h
(2.83 KB)
📄
cpuregs.h
(23.47 KB)
📄
db_machdep.h
(3.42 KB)
📄
dump.h
(2.17 KB)
📄
efi.h
(260 B)
📄
elf.h
(7.48 KB)
📄
endian.h
(4.69 KB)
📄
exec.h
(1.87 KB)
📄
fdt.h
(1.81 KB)
📄
float.h
(3.7 KB)
📄
floatingpoint.h
(2.01 KB)
📄
fls64.h
(1.85 KB)
📄
fpu.h
(141 B)
📄
frame.h
(3.75 KB)
📄
gdb_machdep.h
(2.01 KB)
📄
hwfunc.h
(3.24 KB)
📄
ieee.h
(4.53 KB)
📄
ieeefp.h
(892 B)
📄
in_cksum.h
(2.95 KB)
📄
intr.h
(2.78 KB)
📄
intr_machdep.h
(2.71 KB)
📄
kdb.h
(1.82 KB)
📄
limits.h
(1.97 KB)
📄
locore.h
(2.23 KB)
📄
md_var.h
(2.95 KB)
📄
memdev.h
(1.67 KB)
📄
metadata.h
(1.56 KB)
📄
minidump.h
(1.72 KB)
📄
mips_opcode.h
(9.26 KB)
📄
octeon_cop2.h
(6.98 KB)
📄
ofw_machdep.h
(1.79 KB)
📄
param.h
(5.68 KB)
📄
pcb.h
(4.74 KB)
📄
pcpu.h
(3.59 KB)
📄
pcpu_aux.h
(1.94 KB)
📄
pmap.h
(6.66 KB)
📄
pmc_mdep.h
(1.83 KB)
📄
proc.h
(3.36 KB)
📄
procctl.h
(62 B)
📄
profile.h
(4.56 KB)
📄
pte.h
(7.88 KB)
📄
ptrace.h
(1.78 KB)
📄
reg.h
(3.29 KB)
📄
regdef.h
(3.62 KB)
📄
regnum.h
(5.38 KB)
📄
reloc.h
(1.91 KB)
📄
resource.h
(2.03 KB)
📄
runq.h
(2.2 KB)
📄
sc_machdep.h
(2.41 KB)
📄
setjmp.h
(2.1 KB)
📄
sf_buf.h
(2.04 KB)
📄
sigframe.h
(2.62 KB)
📄
signal.h
(3.17 KB)
📄
smp.h
(1.26 KB)
📄
stdarg.h
(1.58 KB)
📄
sysarch.h
(1.89 KB)
📄
tlb.h
(2.26 KB)
📄
tls.h
(1.76 KB)
📄
trap.h
(4.36 KB)
📄
ucontext.h
(4.34 KB)
📄
vdso.h
(1.57 KB)
📄
vm.h
(1.82 KB)
📄
vmparam.h
(6.17 KB)
Editing: pmc_mdep.h
/*- * This file is in the public domain. * * from: src/sys/alpha/include/pmc_mdep.h,v 1.2 2005/06/09 19:45:06 jkoshy * $FreeBSD$ */ #ifndef _MACHINE_PMC_MDEP_H_ #define _MACHINE_PMC_MDEP_H_ #define PMC_MDEP_CLASS_INDEX_MIPS 1 union pmc_md_op_pmcallocate { uint64_t __pad[4]; }; /* Logging */ #if defined(__mips_n64) #define PMCLOG_READADDR PMCLOG_READ64 #define PMCLOG_EMITADDR PMCLOG_EMIT64 #else #define PMCLOG_READADDR PMCLOG_READ32 #define PMCLOG_EMITADDR PMCLOG_EMIT32 #endif #if _KERNEL /* * MIPS event codes are encoded with a select bit. The * select bit is used when writing to CP0 so that we * can select either counter 0/2 or 1/3. The cycle * and instruction counters are special in that they * can be counted on either 0/2 or 1/3. */ #define MIPS_CTR_ALL 255 /* Count events in any counter. */ #define MIPS_CTR_0 0 /* Counter 0 Event */ #define MIPS_CTR_1 1 /* Counter 1 Event */ struct mips_event_code_map { uint32_t pe_ev; /* enum value */ uint8_t pe_counter; /* Which counter this can be counted in. */ uint8_t pe_code; /* numeric code */ }; struct mips_pmc_spec { uint32_t ps_cpuclass; uint32_t ps_cputype; uint32_t ps_capabilities; int ps_counter_width; }; union pmc_md_pmc { uint32_t pm_mips_evsel; }; #define PMC_TRAPFRAME_TO_PC(TF) ((TF)->pc) extern const struct mips_event_code_map mips_event_codes[]; extern const int mips_event_codes_size; extern int mips_npmcs; extern struct mips_pmc_spec mips_pmc_spec; /* * Prototypes */ struct pmc_mdep *pmc_mips_initialize(void); void pmc_mips_finalize(struct pmc_mdep *_md); /* * CPU-specific functions */ uint32_t mips_get_perfctl(int cpu, int ri, uint32_t event, uint32_t caps); uint64_t mips_pmcn_read(unsigned int pmc); uint64_t mips_pmcn_write(unsigned int pmc, uint64_t v); #endif /* _KERNEL */ #endif /* !_MACHINE_PMC_MDEP_H_ */
Upload File
Create Folder