Rev 1787 | Rev 1799 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1789 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
- | 29 | #include <ofwarch.h> |
|
29 | #include <ofw.h> |
30 | #include <ofw.h> |
30 | #include <printf.h> |
31 | #include <printf.h> |
31 | 32 | ||
32 | typedef int (* ofw_entry_t)(ofw_args_t *args); |
33 | typedef int (* ofw_entry_t)(ofw_args_t *args); |
33 | 34 | ||
Line 53... | Line 54... | ||
53 | return false; |
54 | return false; |
54 | 55 | ||
55 | pci_reg_t macio; |
56 | pci_reg_t macio; |
56 | if (ofw_get_property(device, "assigned-addresses", &macio, sizeof(macio)) <= 0) |
57 | if (ofw_get_property(device, "assigned-addresses", &macio, sizeof(macio)) <= 0) |
57 | return false; |
58 | return false; |
58 | keyboard->addr = macio.addr.addr_lo; |
59 | keyboard->addr = (void *) macio.addr.addr_lo; |
59 | keyboard->size = macio.size_lo; |
60 | keyboard->size = macio.size_lo; |
60 | 61 | ||
61 | return true; |
62 | return true; |
62 | } |
63 | } |
63 | 64 |