diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2016-07-16 10:19:56 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2016-07-16 10:19:56 +0000 |
commit | 364e69070cbdff1b2d36d191fadc66772d2f10c2 (patch) | |
tree | f1e176bfcf8740c8f7599ae81679630272ea937e /sys/arch/octeon | |
parent | 456507ee6c3909e7bb18a133e8ee120cda39bf88 (diff) |
Remove octeon_disable_interrupt() and octeon_restore_status().
They are unused and equivalent to disableintr() and setsr().
While here, clean up a few other leftovers.
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r-- | sys/arch/octeon/include/octeonvar.h | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/sys/arch/octeon/include/octeonvar.h b/sys/arch/octeon/include/octeonvar.h index 1a012bafcac..a9304565383 100644 --- a/sys/arch/octeon/include/octeonvar.h +++ b/sys/arch/octeon/include/octeonvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: octeonvar.h,v 1.30 2016/07/10 10:18:58 visa Exp $ */ +/* $OpenBSD: octeonvar.h,v 1.31 2016/07/16 10:19:55 visa Exp $ */ /* $NetBSD: maltavar.h,v 1.3 2002/03/18 10:10:16 simonb Exp $ */ /*- @@ -73,14 +73,6 @@ struct octeon_config { bus_dma_tag_t mc_iobus_dmat; bus_dma_tag_t mc_bootbus_dmat; -/* - struct mips_bus_dma_tag mc_core1_dmat; - - struct extent *mc_io_ex; - struct extent *mc_mem_ex; - - int mc_mallocsafe; -*/ }; /* @@ -292,13 +284,6 @@ extern struct boot_info *octeon_boot_info; #define BOOTINFO_CFG_FLAG_DEBUG (1ull << 2) #define BOOTINFO_CFG_FLAG_NO_MAGIC (1ull << 3) -void octeon_bus_io_init(bus_space_tag_t, void *); -void octeon_bus_mem_init(bus_space_tag_t, void *); -void octeon_cal_timer(int); -void octeon_dma_init(struct octeon_config *); -void octeon_intr_init(void); -int octeon_get_ethaddr(int, u_int8_t *); - int octeon_ioclock_speed(void); #endif /* _KERNEL */ @@ -386,35 +371,6 @@ octeon_cvmseg_write_8(size_t offset, uint64_t value) octeon_xkphys_write_8(0xffffffffffff8000ULL + offset, value); } -/* XXX */ -static inline uint32_t -octeon_disable_interrupt(uint32_t *new) -{ - uint32_t s, tmp; - - __asm volatile ( - _ASM_PROLOGUE - " mfc0 %[s], $12 \n" - " and %[tmp], %[s], ~1 \n" - " mtc0 %[tmp], $12 \n" - _ASM_EPILOGUE - : [s]"=&r"(s), [tmp]"=&r"(tmp)); - if (new) - *new = tmp; - return s; -} - -/* XXX */ -static inline void -octeon_restore_status(uint32_t s) -{ - __asm volatile ( - _ASM_PROLOGUE - " mtc0 %[s], $12 \n" - _ASM_EPILOGUE - :: [s]"r"(s)); -} - static inline uint64_t octeon_get_cycles(void) { |