bcm2836.c (0269ae4c19ad779b43b0d6e2416ac7386945d692) | bcm2836.c (63f34d01096ac0ed105749ccf8a0ebcc02dbc813) |
---|---|
1/* 2 * Copyright 2015 Andrew Turner. 3 * Copyright 2016 Svatopluk Kraus 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: --- 646 unchanged lines hidden (view full) --- 655bcm_lintc_probe(device_t dev) 656{ 657 658 if (!ofw_bus_status_okay(dev)) 659 return (ENXIO); 660 661 if (!ofw_bus_is_compatible(dev, "brcm,bcm2836-l1-intc")) 662 return (ENXIO); | 1/* 2 * Copyright 2015 Andrew Turner. 3 * Copyright 2016 Svatopluk Kraus 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: --- 646 unchanged lines hidden (view full) --- 655bcm_lintc_probe(device_t dev) 656{ 657 658 if (!ofw_bus_status_okay(dev)) 659 return (ENXIO); 660 661 if (!ofw_bus_is_compatible(dev, "brcm,bcm2836-l1-intc")) 662 return (ENXIO); |
663 if (!ofw_bus_has_prop(dev, "interrupt-controller")) 664 return (ENXIO); |
|
663 device_set_desc(dev, "BCM2836 Interrupt Controller"); 664 return (BUS_PROBE_DEFAULT); 665} 666 667static int 668bcm_lintc_attach(device_t dev) 669{ 670 struct bcm_lintc_softc *sc; --- 73 unchanged lines hidden --- | 665 device_set_desc(dev, "BCM2836 Interrupt Controller"); 666 return (BUS_PROBE_DEFAULT); 667} 668 669static int 670bcm_lintc_attach(device_t dev) 671{ 672 struct bcm_lintc_softc *sc; --- 73 unchanged lines hidden --- |