History log of /openbsd-current/sys/arch/armv7/sunxi/sxiintc.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.12 29-Apr-2024 jsg

remove unused global vars


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.11 03-Jan-2022 jsg

Don't use != 0 to check whether a pointer is non-NULL.


# 1.10 24-Oct-2021 mpi

Constify struct cfattach.

ok visa@ a long time ago, ok patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.9 16-May-2021 deraadt

panic does not require a \n at the end. When one is provided, it looks wrong.


Revision tags: OPENBSD_6_9_BASE
# 1.8 25-Mar-2021 jsg

remove uneeded includes in md armv7 files

based on include-what-you-use suggestions


Revision tags: OPENBSD_6_8_BASE
# 1.7 14-Jul-2020 patrick

Extend the interrupt API on arm64 and armv7 to be able to pass around
a struct cpu_info *. From a driver point of view the fdt_intr_establish_*
API now also exist same functions with a *_cpu suffix. Internally the
"old" functions now call their *_cpu counterparts, passing NULL as ci.
NULL will be interpreted as primary CPU in the interrupt controller code.

The internal framework for interrupt controllers has been changed so that
the establish methods provided by an interrupt controller function always
takes a struct cpu_info *.

Some drivers, like imxgpio(4) and rkgpio(4), only have a single interrupt
line for multiple pins. On those we simply disallow trying to establish
an interrupt on a non-primary CPU, returning NULL.

Since we do not have MP yet on armv7, all armv7 interrupt controllers do
return NULL if an attempt is made to establish an interrupt on a different
CPU. That said, so far there's no way this can happen. If we ever gain
MP support, this is a reminder that the interrupt controller drivers have
to be adjusted.

Prompted by dlg@
ok kettenis@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.6 05-Oct-2019 kettenis

Use mask to extract IPL; should have been part of the earlier diff that
added IPI support on armv7.


# 1.5 06-May-2019 mlarkin

Whitespace removal

Pointed out by Jerome Pinot


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.4 04-Jun-2018 kettenis

Remove unused include.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.3 21-Jan-2017 patrick

Move Allwinner drivers that will soon be used by OpenBSD/arm64
to the new MI FDT driver directory.

"go ahead" kettenis@


# 1.2 06-Aug-2016 patrick

Always allocate intrhand with M_WAITOK.

Requested by and ok kettenis@


# 1.1 05-Aug-2016 kettenis

We don't want drivers with numbers in their names.

Requested by deraadt@


# 1.11 03-Jan-2022 jsg

Don't use != 0 to check whether a pointer is non-NULL.


# 1.10 24-Oct-2021 mpi

Constify struct cfattach.

ok visa@ a long time ago, ok patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.9 16-May-2021 deraadt

panic does not require a \n at the end. When one is provided, it looks wrong.


Revision tags: OPENBSD_6_9_BASE
# 1.8 25-Mar-2021 jsg

remove uneeded includes in md armv7 files

based on include-what-you-use suggestions


Revision tags: OPENBSD_6_8_BASE
# 1.7 14-Jul-2020 patrick

Extend the interrupt API on arm64 and armv7 to be able to pass around
a struct cpu_info *. From a driver point of view the fdt_intr_establish_*
API now also exist same functions with a *_cpu suffix. Internally the
"old" functions now call their *_cpu counterparts, passing NULL as ci.
NULL will be interpreted as primary CPU in the interrupt controller code.

The internal framework for interrupt controllers has been changed so that
the establish methods provided by an interrupt controller function always
takes a struct cpu_info *.

Some drivers, like imxgpio(4) and rkgpio(4), only have a single interrupt
line for multiple pins. On those we simply disallow trying to establish
an interrupt on a non-primary CPU, returning NULL.

Since we do not have MP yet on armv7, all armv7 interrupt controllers do
return NULL if an attempt is made to establish an interrupt on a different
CPU. That said, so far there's no way this can happen. If we ever gain
MP support, this is a reminder that the interrupt controller drivers have
to be adjusted.

Prompted by dlg@
ok kettenis@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.6 05-Oct-2019 kettenis

Use mask to extract IPL; should have been part of the earlier diff that
added IPI support on armv7.


# 1.5 06-May-2019 mlarkin

Whitespace removal

Pointed out by Jerome Pinot


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.4 04-Jun-2018 kettenis

Remove unused include.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.3 21-Jan-2017 patrick

Move Allwinner drivers that will soon be used by OpenBSD/arm64
to the new MI FDT driver directory.

"go ahead" kettenis@


# 1.2 06-Aug-2016 patrick

Always allocate intrhand with M_WAITOK.

Requested by and ok kettenis@


# 1.1 05-Aug-2016 kettenis

We don't want drivers with numbers in their names.

Requested by deraadt@


# 1.10 24-Oct-2021 mpi

Constify struct cfattach.

ok visa@ a long time ago, ok patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.9 16-May-2021 deraadt

panic does not require a \n at the end. When one is provided, it looks wrong.


Revision tags: OPENBSD_6_9_BASE
# 1.8 25-Mar-2021 jsg

remove uneeded includes in md armv7 files

based on include-what-you-use suggestions


Revision tags: OPENBSD_6_8_BASE
# 1.7 14-Jul-2020 patrick

Extend the interrupt API on arm64 and armv7 to be able to pass around
a struct cpu_info *. From a driver point of view the fdt_intr_establish_*
API now also exist same functions with a *_cpu suffix. Internally the
"old" functions now call their *_cpu counterparts, passing NULL as ci.
NULL will be interpreted as primary CPU in the interrupt controller code.

The internal framework for interrupt controllers has been changed so that
the establish methods provided by an interrupt controller function always
takes a struct cpu_info *.

Some drivers, like imxgpio(4) and rkgpio(4), only have a single interrupt
line for multiple pins. On those we simply disallow trying to establish
an interrupt on a non-primary CPU, returning NULL.

Since we do not have MP yet on armv7, all armv7 interrupt controllers do
return NULL if an attempt is made to establish an interrupt on a different
CPU. That said, so far there's no way this can happen. If we ever gain
MP support, this is a reminder that the interrupt controller drivers have
to be adjusted.

Prompted by dlg@
ok kettenis@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.6 05-Oct-2019 kettenis

Use mask to extract IPL; should have been part of the earlier diff that
added IPI support on armv7.


# 1.5 06-May-2019 mlarkin

Whitespace removal

Pointed out by Jerome Pinot


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.4 04-Jun-2018 kettenis

Remove unused include.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.3 21-Jan-2017 patrick

Move Allwinner drivers that will soon be used by OpenBSD/arm64
to the new MI FDT driver directory.

"go ahead" kettenis@


# 1.2 06-Aug-2016 patrick

Always allocate intrhand with M_WAITOK.

Requested by and ok kettenis@


# 1.1 05-Aug-2016 kettenis

We don't want drivers with numbers in their names.

Requested by deraadt@


# 1.9 16-May-2021 deraadt

panic does not require a \n at the end. When one is provided, it looks wrong.


Revision tags: OPENBSD_6_9_BASE
# 1.8 25-Mar-2021 jsg

remove uneeded includes in md armv7 files

based on include-what-you-use suggestions


Revision tags: OPENBSD_6_8_BASE
# 1.7 14-Jul-2020 patrick

Extend the interrupt API on arm64 and armv7 to be able to pass around
a struct cpu_info *. From a driver point of view the fdt_intr_establish_*
API now also exist same functions with a *_cpu suffix. Internally the
"old" functions now call their *_cpu counterparts, passing NULL as ci.
NULL will be interpreted as primary CPU in the interrupt controller code.

The internal framework for interrupt controllers has been changed so that
the establish methods provided by an interrupt controller function always
takes a struct cpu_info *.

Some drivers, like imxgpio(4) and rkgpio(4), only have a single interrupt
line for multiple pins. On those we simply disallow trying to establish
an interrupt on a non-primary CPU, returning NULL.

Since we do not have MP yet on armv7, all armv7 interrupt controllers do
return NULL if an attempt is made to establish an interrupt on a different
CPU. That said, so far there's no way this can happen. If we ever gain
MP support, this is a reminder that the interrupt controller drivers have
to be adjusted.

Prompted by dlg@
ok kettenis@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.6 05-Oct-2019 kettenis

Use mask to extract IPL; should have been part of the earlier diff that
added IPI support on armv7.


# 1.5 06-May-2019 mlarkin

Whitespace removal

Pointed out by Jerome Pinot


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.4 04-Jun-2018 kettenis

Remove unused include.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.3 21-Jan-2017 patrick

Move Allwinner drivers that will soon be used by OpenBSD/arm64
to the new MI FDT driver directory.

"go ahead" kettenis@


# 1.2 06-Aug-2016 patrick

Always allocate intrhand with M_WAITOK.

Requested by and ok kettenis@


# 1.1 05-Aug-2016 kettenis

We don't want drivers with numbers in their names.

Requested by deraadt@


# 1.8 25-Mar-2021 jsg

remove uneeded includes in md armv7 files

based on include-what-you-use suggestions


Revision tags: OPENBSD_6_8_BASE
# 1.7 14-Jul-2020 patrick

Extend the interrupt API on arm64 and armv7 to be able to pass around
a struct cpu_info *. From a driver point of view the fdt_intr_establish_*
API now also exist same functions with a *_cpu suffix. Internally the
"old" functions now call their *_cpu counterparts, passing NULL as ci.
NULL will be interpreted as primary CPU in the interrupt controller code.

The internal framework for interrupt controllers has been changed so that
the establish methods provided by an interrupt controller function always
takes a struct cpu_info *.

Some drivers, like imxgpio(4) and rkgpio(4), only have a single interrupt
line for multiple pins. On those we simply disallow trying to establish
an interrupt on a non-primary CPU, returning NULL.

Since we do not have MP yet on armv7, all armv7 interrupt controllers do
return NULL if an attempt is made to establish an interrupt on a different
CPU. That said, so far there's no way this can happen. If we ever gain
MP support, this is a reminder that the interrupt controller drivers have
to be adjusted.

Prompted by dlg@
ok kettenis@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.6 05-Oct-2019 kettenis

Use mask to extract IPL; should have been part of the earlier diff that
added IPI support on armv7.


# 1.5 06-May-2019 mlarkin

Whitespace removal

Pointed out by Jerome Pinot


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.4 04-Jun-2018 kettenis

Remove unused include.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.3 21-Jan-2017 patrick

Move Allwinner drivers that will soon be used by OpenBSD/arm64
to the new MI FDT driver directory.

"go ahead" kettenis@


# 1.2 06-Aug-2016 patrick

Always allocate intrhand with M_WAITOK.

Requested by and ok kettenis@


# 1.1 05-Aug-2016 kettenis

We don't want drivers with numbers in their names.

Requested by deraadt@


# 1.7 14-Jul-2020 patrick

Extend the interrupt API on arm64 and armv7 to be able to pass around
a struct cpu_info *. From a driver point of view the fdt_intr_establish_*
API now also exist same functions with a *_cpu suffix. Internally the
"old" functions now call their *_cpu counterparts, passing NULL as ci.
NULL will be interpreted as primary CPU in the interrupt controller code.

The internal framework for interrupt controllers has been changed so that
the establish methods provided by an interrupt controller function always
takes a struct cpu_info *.

Some drivers, like imxgpio(4) and rkgpio(4), only have a single interrupt
line for multiple pins. On those we simply disallow trying to establish
an interrupt on a non-primary CPU, returning NULL.

Since we do not have MP yet on armv7, all armv7 interrupt controllers do
return NULL if an attempt is made to establish an interrupt on a different
CPU. That said, so far there's no way this can happen. If we ever gain
MP support, this is a reminder that the interrupt controller drivers have
to be adjusted.

Prompted by dlg@
ok kettenis@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.6 05-Oct-2019 kettenis

Use mask to extract IPL; should have been part of the earlier diff that
added IPI support on armv7.


# 1.5 06-May-2019 mlarkin

Whitespace removal

Pointed out by Jerome Pinot


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.4 04-Jun-2018 kettenis

Remove unused include.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.3 21-Jan-2017 patrick

Move Allwinner drivers that will soon be used by OpenBSD/arm64
to the new MI FDT driver directory.

"go ahead" kettenis@


# 1.2 06-Aug-2016 patrick

Always allocate intrhand with M_WAITOK.

Requested by and ok kettenis@


# 1.1 05-Aug-2016 kettenis

We don't want drivers with numbers in their names.

Requested by deraadt@


# 1.6 05-Oct-2019 kettenis

Use mask to extract IPL; should have been part of the earlier diff that
added IPI support on armv7.


# 1.5 06-May-2019 mlarkin

Whitespace removal

Pointed out by Jerome Pinot


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.4 04-Jun-2018 kettenis

Remove unused include.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.3 21-Jan-2017 patrick

Move Allwinner drivers that will soon be used by OpenBSD/arm64
to the new MI FDT driver directory.

"go ahead" kettenis@


# 1.2 06-Aug-2016 patrick

Always allocate intrhand with M_WAITOK.

Requested by and ok kettenis@


# 1.1 05-Aug-2016 kettenis

We don't want drivers with numbers in their names.

Requested by deraadt@


# 1.5 06-May-2019 mlarkin

Whitespace removal

Pointed out by Jerome Pinot


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.4 04-Jun-2018 kettenis

Remove unused include.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.3 21-Jan-2017 patrick

Move Allwinner drivers that will soon be used by OpenBSD/arm64
to the new MI FDT driver directory.

"go ahead" kettenis@


# 1.2 06-Aug-2016 patrick

Always allocate intrhand with M_WAITOK.

Requested by and ok kettenis@


# 1.1 05-Aug-2016 kettenis

We don't want drivers with numbers in their names.

Requested by deraadt@


# 1.4 04-Jun-2018 kettenis

Remove unused include.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.3 21-Jan-2017 patrick

Move Allwinner drivers that will soon be used by OpenBSD/arm64
to the new MI FDT driver directory.

"go ahead" kettenis@


# 1.2 06-Aug-2016 patrick

Always allocate intrhand with M_WAITOK.

Requested by and ok kettenis@


# 1.1 05-Aug-2016 kettenis

We don't want drivers with numbers in their names.

Requested by deraadt@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.3 21-Jan-2017 patrick

Move Allwinner drivers that will soon be used by OpenBSD/arm64
to the new MI FDT driver directory.

"go ahead" kettenis@


# 1.2 06-Aug-2016 patrick

Always allocate intrhand with M_WAITOK.

Requested by and ok kettenis@


# 1.1 05-Aug-2016 kettenis

We don't want drivers with numbers in their names.

Requested by deraadt@