Use the bs_notimpl* functions for unsupported bus space operations.
This commit is contained in:
parent
005a9c192c
commit
da99d2d6ce
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: podulebus_io.c,v 1.3 1997/07/30 23:49:54 mark Exp $ */
|
||||
/* $NetBSD: podulebus_io.c,v 1.4 1997/10/14 23:52:46 mark Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Mark Brinicombe.
|
||||
|
@ -43,12 +43,13 @@
|
|||
/* Proto types for all the bus_space structure functions */
|
||||
|
||||
bs_protos(podulebus);
|
||||
bs_protos(bs_notimpl);
|
||||
|
||||
/* Declare the podulebus bus space tag */
|
||||
|
||||
struct bus_space podulebus_bs_tag = {
|
||||
/* cookie */
|
||||
(void *) 2, /* shift to apply to registers */
|
||||
(void *) 2, /* Shift to apply to registers */
|
||||
|
||||
/* mapping/unmapping */
|
||||
podulebus_map,
|
||||
|
@ -66,55 +67,55 @@ struct bus_space podulebus_bs_tag = {
|
|||
podulebus_r_1,
|
||||
podulebus_r_2,
|
||||
podulebus_r_4,
|
||||
podulebus_r_8,
|
||||
bs_notimpl_r_8,
|
||||
|
||||
/* read multiple */
|
||||
podulebus_rm_1,
|
||||
bs_notimpl_rm_1,
|
||||
podulebus_rm_2,
|
||||
podulebus_rm_4,
|
||||
podulebus_rm_8,
|
||||
bs_notimpl_rm_4,
|
||||
bs_notimpl_rm_8,
|
||||
|
||||
/* read region */
|
||||
podulebus_rr_1,
|
||||
podulebus_rr_2,
|
||||
podulebus_rr_4,
|
||||
podulebus_rr_8,
|
||||
bs_notimpl_rr_1,
|
||||
bs_notimpl_rr_2,
|
||||
bs_notimpl_rr_4,
|
||||
bs_notimpl_rr_8,
|
||||
|
||||
/* write (single) */
|
||||
podulebus_w_1,
|
||||
podulebus_w_2,
|
||||
podulebus_w_4,
|
||||
podulebus_w_8,
|
||||
bs_notimpl_w_8,
|
||||
|
||||
/* write multiple */
|
||||
podulebus_wm_1,
|
||||
bs_notimpl_wm_1,
|
||||
podulebus_wm_2,
|
||||
podulebus_wm_4,
|
||||
podulebus_wm_8,
|
||||
bs_notimpl_wm_4,
|
||||
bs_notimpl_wm_8,
|
||||
|
||||
/* write region */
|
||||
podulebus_wr_1,
|
||||
podulebus_wr_2,
|
||||
podulebus_wr_4,
|
||||
podulebus_wr_8,
|
||||
bs_notimpl_wr_1,
|
||||
bs_notimpl_wr_2,
|
||||
bs_notimpl_wr_4,
|
||||
bs_notimpl_wr_8,
|
||||
|
||||
/* set multiple */
|
||||
podulebus_sm_1,
|
||||
podulebus_sm_2,
|
||||
podulebus_sm_4,
|
||||
podulebus_sm_8,
|
||||
bs_notimpl_sm_1,
|
||||
bs_notimpl_sm_2,
|
||||
bs_notimpl_sm_4,
|
||||
bs_notimpl_sm_8,
|
||||
|
||||
/* set region */
|
||||
podulebus_sr_1,
|
||||
podulebus_sr_2,
|
||||
podulebus_sr_4,
|
||||
podulebus_sr_8,
|
||||
bs_notimpl_sr_1,
|
||||
bs_notimpl_sr_2,
|
||||
bs_notimpl_sr_4,
|
||||
bs_notimpl_sr_8,
|
||||
|
||||
/* copy */
|
||||
podulebus_c_1,
|
||||
podulebus_c_2,
|
||||
podulebus_c_4,
|
||||
podulebus_c_8,
|
||||
bs_notimpl_c_1,
|
||||
bs_notimpl_c_2,
|
||||
bs_notimpl_c_4,
|
||||
bs_notimpl_c_8,
|
||||
};
|
||||
|
||||
/* bus space functions */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: podulebus_io_asm.S,v 1.3 1997/07/30 23:52:08 mark Exp $ */
|
||||
/* $NetBSD: podulebus_io_asm.S,v 1.4 1997/10/14 23:52:50 mark Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Mark Brinicombe.
|
||||
|
@ -66,15 +66,6 @@ _podulebus_r_4:
|
|||
ldr r0, [r1, r2]
|
||||
mov pc, lr
|
||||
|
||||
.global _podulebus_r_8
|
||||
_podulebus_r_8:
|
||||
adr r0, podulebus_r_8_text
|
||||
b _panic
|
||||
|
||||
podulebus_r_8_text:
|
||||
.asciz "podulebus_r_8(%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
/*
|
||||
* write single
|
||||
*/
|
||||
|
@ -99,28 +90,10 @@ _podulebus_w_4:
|
|||
str r3, [r1, r2]
|
||||
mov pc, lr
|
||||
|
||||
.global _podulebus_w_8
|
||||
_podulebus_w_8:
|
||||
adr r0, podulebus_w_8_text
|
||||
b _panic
|
||||
|
||||
podulebus_w_8_text:
|
||||
.asciz "podulebus_w_8(%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
/*
|
||||
* read multiple
|
||||
*/
|
||||
|
||||
.global _podulebus_rm_1
|
||||
_podulebus_rm_1:
|
||||
adr r0, podulebus_rm_1_text
|
||||
b _panic
|
||||
|
||||
podulebus_rm_1_text:
|
||||
.asciz "podulebus_rm_1(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_rm_2
|
||||
_podulebus_rm_2:
|
||||
add r0, r1, r2, lsl r0
|
||||
|
@ -128,258 +101,13 @@ _podulebus_rm_2:
|
|||
ldr r2, [sp, #0]
|
||||
b _insw
|
||||
|
||||
.global _podulebus_rm_4
|
||||
_podulebus_rm_4:
|
||||
adr r0, podulebus_rm_4_text
|
||||
b _panic
|
||||
|
||||
podulebus_rm_4_text:
|
||||
.asciz "podulebus_rm_4(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_rm_8
|
||||
_podulebus_rm_8:
|
||||
adr r0, podulebus_rm_8_text
|
||||
b _panic
|
||||
|
||||
podulebus_rm_8_text:
|
||||
.asciz "podulebus_rm_8(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
/*
|
||||
* write multiple
|
||||
*/
|
||||
|
||||
.global _podulebus_wm_1
|
||||
_podulebus_wm_1:
|
||||
adr r0, podulebus_wm_1_text
|
||||
b _panic
|
||||
|
||||
podulebus_wm_1_text:
|
||||
.asciz "podulebus_wm_1(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_wm_2
|
||||
_podulebus_wm_2:
|
||||
add r0, r1, r2, lsl r0
|
||||
mov r1, r3
|
||||
ldr r2, [sp, #0]
|
||||
b _outsw
|
||||
|
||||
.global _podulebus_wm_4
|
||||
_podulebus_wm_4:
|
||||
adr r0, podulebus_wm_4_text
|
||||
b _panic
|
||||
|
||||
podulebus_wm_4_text:
|
||||
.asciz "podulebus_wm_4(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_wm_8
|
||||
_podulebus_wm_8:
|
||||
adr r0, podulebus_wm_8_text
|
||||
b _panic
|
||||
|
||||
podulebus_wm_8_text:
|
||||
.asciz "podulebus_wm_8(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
/*
|
||||
* read region
|
||||
*/
|
||||
|
||||
.global _podulebus_rr_1
|
||||
_podulebus_rr_1:
|
||||
adr r0, podulebus_rr_1_text
|
||||
b _panic
|
||||
|
||||
podulebus_rr_1_text:
|
||||
.asciz "podulebus_rr_1(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_rr_2
|
||||
_podulebus_rr_2:
|
||||
adr r0, podulebus_rr_2_text
|
||||
b _panic
|
||||
|
||||
podulebus_rr_2_text:
|
||||
.asciz "podulebus_rr_2(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_rr_4
|
||||
_podulebus_rr_4:
|
||||
adr r0, podulebus_rr_4_text
|
||||
b _panic
|
||||
|
||||
podulebus_rr_4_text:
|
||||
.asciz "podulebus_rr_4(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_rr_8
|
||||
_podulebus_rr_8:
|
||||
adr r0, podulebus_rr_8_text
|
||||
b _panic
|
||||
|
||||
podulebus_rr_8_text:
|
||||
.asciz "podulebus_rr_8(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
/*
|
||||
* write region
|
||||
*/
|
||||
|
||||
.global _podulebus_wr_1
|
||||
_podulebus_wr_1:
|
||||
adr r0, podulebus_wr_1_text
|
||||
b _panic
|
||||
|
||||
podulebus_wr_1_text:
|
||||
.asciz "podulebus_wr_1(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_wr_2
|
||||
_podulebus_wr_2:
|
||||
adr r0, podulebus_wr_2_text
|
||||
b _panic
|
||||
|
||||
podulebus_wr_2_text:
|
||||
.asciz "podulebus_wr_2(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_wr_4
|
||||
_podulebus_wr_4:
|
||||
adr r0, podulebus_wr_4_text
|
||||
b _panic
|
||||
|
||||
podulebus_wr_4_text:
|
||||
.asciz "podulebus_wr_4(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_wr_8
|
||||
_podulebus_wr_8:
|
||||
adr r0, podulebus_wr_8_text
|
||||
b _panic
|
||||
|
||||
podulebus_wr_8_text:
|
||||
.asciz "podulebus_wr_8(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
/*
|
||||
* set multiple
|
||||
*/
|
||||
|
||||
.global _podulebus_sm_1
|
||||
_podulebus_sm_1:
|
||||
adr r0, podulebus_sm_1_text
|
||||
b _panic
|
||||
|
||||
podulebus_sm_1_text:
|
||||
.asciz "podulebus_sm_1(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_sm_2
|
||||
_podulebus_sm_2:
|
||||
adr r0, podulebus_sm_2_text
|
||||
b _panic
|
||||
|
||||
podulebus_sm_2_text:
|
||||
.asciz "podulebus_sm_2(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_sm_4
|
||||
_podulebus_sm_4:
|
||||
adr r0, podulebus_sm_4_text
|
||||
b _panic
|
||||
|
||||
podulebus_sm_4_text:
|
||||
.asciz "podulebus_sm_4(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_sm_8
|
||||
_podulebus_sm_8:
|
||||
adr r0, podulebus_sm_8_text
|
||||
b _panic
|
||||
|
||||
podulebus_sm_8_text:
|
||||
.asciz "podulebus_sm_8(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
/*
|
||||
* set region
|
||||
*/
|
||||
|
||||
.global _podulebus_sr_1
|
||||
_podulebus_sr_1:
|
||||
adr r0, podulebus_sr_1_text
|
||||
b _panic
|
||||
|
||||
podulebus_sr_1_text:
|
||||
.asciz "podulebus_sr_1(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_sr_2
|
||||
_podulebus_sr_2:
|
||||
adr r0, podulebus_sr_2_text
|
||||
b _panic
|
||||
|
||||
podulebus_sr_2_text:
|
||||
.asciz "podulebus_sr_2(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_sr_4
|
||||
_podulebus_sr_4:
|
||||
adr r0, podulebus_sr_4_text
|
||||
b _panic
|
||||
|
||||
podulebus_sr_4_text:
|
||||
.asciz "podulebus_sr_4(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_sr_8
|
||||
_podulebus_sr_8:
|
||||
adr r0, podulebus_sr_8_text
|
||||
b _panic
|
||||
|
||||
podulebus_sr_8_text:
|
||||
.asciz "podulebus_sr_8(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
/*
|
||||
* copy
|
||||
*/
|
||||
|
||||
.global _podulebus_c_1
|
||||
_podulebus_c_1:
|
||||
adr r0, podulebus_c_1_text
|
||||
b _panic
|
||||
|
||||
podulebus_c_1_text:
|
||||
.asciz "podulebus_c_1(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_c_2
|
||||
_podulebus_c_2:
|
||||
adr r0, podulebus_c_2_text
|
||||
b _panic
|
||||
|
||||
podulebus_c_2_text:
|
||||
.asciz "podulebus_c_2(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_c_4
|
||||
_podulebus_c_4:
|
||||
adr r0, podulebus_c_4_text
|
||||
b _panic
|
||||
|
||||
podulebus_c_4_text:
|
||||
.asciz "podulebus_c_4(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
||||
.global _podulebus_c_8
|
||||
_podulebus_c_8:
|
||||
adr r0, podulebus_c_8_text
|
||||
b _panic
|
||||
|
||||
podulebus_c_8_text:
|
||||
.asciz "podulebus_c_8(%x,%x,%x,%x): Not implemented\n"
|
||||
.align 0
|
||||
|
|
Loading…
Reference in New Issue