Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/bhnd/cores/chipc/chipc_private.h
/*- | /*- | ||||
* Copyright (c) 2015-2016 Landon Fuller <landon@landonf.org> | * Copyright (c) 2015-2016 Landon Fuller <landon@landonf.org> | ||||
* Copyright (c) 2017 The FreeBSD Foundation | |||||
* All rights reserved. | * All rights reserved. | ||||
* | * | ||||
* Portions of this software were developed by Landon Fuller | |||||
* under sponsorship from the FreeBSD Foundation. | |||||
* | |||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions | * modification, are permitted provided that the following conditions | ||||
* are met: | * are met: | ||||
* 1. Redistributions of source code must retain the above copyright | * 1. Redistributions of source code must retain the above copyright | ||||
* notice, this list of conditions and the following disclaimer, | * notice, this list of conditions and the following disclaimer, | ||||
* without modification. | * without modification. | ||||
* 2. Redistributions in binary form must reproduce at minimum a disclaimer | * 2. Redistributions in binary form must reproduce at minimum a disclaimer | ||||
* similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any | * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any | ||||
Show All 37 Lines | |||||
struct chipc_caps; | struct chipc_caps; | ||||
struct chipc_region; | struct chipc_region; | ||||
struct chipc_softc; | struct chipc_softc; | ||||
int chipc_init_child_resource(struct resource *r, | int chipc_init_child_resource(struct resource *r, | ||||
struct resource *parent, | struct resource *parent, | ||||
bhnd_size_t offset, bhnd_size_t size); | bhnd_size_t offset, bhnd_size_t size); | ||||
int chipc_set_resource(struct chipc_softc *sc, | int chipc_set_irq_resource(struct chipc_softc *sc, | ||||
device_t child, int type, int rid, | device_t child, int rid, u_int intr); | ||||
rman_res_t start, rman_res_t count, u_int port, | int chipc_set_mem_resource(struct chipc_softc *sc, | ||||
u_int region); | device_t child, int rid, rman_res_t start, | ||||
rman_res_t count, u_int port, u_int region); | |||||
struct chipc_region *chipc_alloc_region(struct chipc_softc *sc, | struct chipc_region *chipc_alloc_region(struct chipc_softc *sc, | ||||
bhnd_port_type type, u_int port, | bhnd_port_type type, u_int port, | ||||
u_int region); | u_int region); | ||||
void chipc_free_region(struct chipc_softc *sc, | void chipc_free_region(struct chipc_softc *sc, | ||||
struct chipc_region *cr); | struct chipc_region *cr); | ||||
struct chipc_region *chipc_find_region(struct chipc_softc *sc, | struct chipc_region *chipc_find_region(struct chipc_softc *sc, | ||||
rman_res_t start, rman_res_t end); | rman_res_t start, rman_res_t end); | ||||
Show All 36 Lines |