Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
etherbone-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
hdl-core-lib
etherbone-core
Commits
69b83a97
Commit
69b83a97
authored
Apr 22, 2016
by
Wesley W. Terpstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api: no need to deprecate non-MSI methods
As we do not remap nested addresses, using msi_base=0 is harmless.
parent
5d22e346
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
etherbone.h
api/etherbone.h
+9
-9
No files found.
api/etherbone.h
View file @
69b83a97
...
...
@@ -49,13 +49,6 @@
#define EB_PRIVATE __attribute__((visibility("hidden")))
#endif
/* Deprecated */
#ifdef __GNUC__
#define EB_DEPRECATED __attribute__ ((deprecated))
#else
#define EB_DEPRECATED
#endif
/* Pointer type -- depends on memory implementation */
#ifdef EB_USE_MALLOC
#define EB_POINTER(typ) struct typ*
...
...
@@ -636,7 +629,7 @@ EB_PUBLIC eb_status_t eb_sdb_scan_bus2(eb_device_t device, const struct sdb_brid
EB_PUBLIC
eb_status_t
eb_sdb_scan_root2
(
eb_device_t
device
,
eb_user_data_t
data
,
sdb_callback2_t
cb
);
typedef
void
(
*
sdb_callback_t
)(
eb_user_data_t
,
eb_device_t
device
,
const
struct
sdb_table
*
,
eb_status_t
);
EB_PUBLIC
eb_status_t
eb_sdb_scan_bus
(
eb_device_t
device
,
const
struct
sdb_bridge
*
bridge
,
eb_user_data_t
data
,
sdb_callback_t
cb
)
EB_DEPRECATED
;
EB_PUBLIC
eb_status_t
eb_sdb_scan_bus
(
eb_device_t
device
,
const
struct
sdb_bridge
*
bridge
,
eb_user_data_t
data
,
sdb_callback_t
cb
);
EB_PUBLIC
eb_status_t
eb_sdb_scan_root
(
eb_device_t
device
,
eb_user_data_t
data
,
sdb_callback_t
cb
);
/* Convenience methods for locating / identifying devices.
...
...
@@ -666,7 +659,7 @@ EB_PUBLIC eb_status_t eb_sdb_find_by_identity(eb_device_t device, uint64_t vendo
* root node for eb_sdb_find_by_identity_at.
*/
EB_PUBLIC
eb_status_t
eb_sdb_find_by_identity_at2
(
eb_device_t
device
,
const
struct
sdb_bridge
*
bridge
,
eb_address_t
msi_base
,
uint64_t
vendor_id
,
uint32_t
device_id
,
struct
sdb_device
*
output
,
eb_address_t
*
output_msi
,
int
*
devices
);
EB_PUBLIC
eb_status_t
eb_sdb_find_by_identity_at
(
eb_device_t
device
,
const
struct
sdb_bridge
*
bridge
,
uint64_t
vendor_id
,
uint32_t
device_id
,
struct
sdb_device
*
output
,
int
*
devices
)
EB_DEPRECATED
;
EB_PUBLIC
eb_status_t
eb_sdb_find_by_identity_at
(
eb_device_t
device
,
const
struct
sdb_bridge
*
bridge
,
uint64_t
vendor_id
,
uint32_t
device_id
,
struct
sdb_device
*
output
,
int
*
devices
);
#ifdef __cplusplus
}
...
...
@@ -756,6 +749,8 @@ class Device {
width_t
width
()
const
;
template
<
typename
T
>
EB_STATUS_OR_VOID_T
sdb_scan_bus
(
const
struct
sdb_bridge
*
bridge
,
T
*
user
,
sdb_callback_t
);
template
<
typename
T
>
EB_STATUS_OR_VOID_T
sdb_scan_bus2
(
const
struct
sdb_bridge
*
bridge
,
eb_address_t
msi_base
,
T
*
user
,
sdb_callback2_t
);
template
<
typename
T
>
...
...
@@ -952,6 +947,11 @@ inline width_t Device::width() const {
return
eb_device_width
(
device
);
}
template
<
typename
T
>
inline
EB_STATUS_OR_VOID_T
Device
::
sdb_scan_bus
(
const
struct
sdb_bridge
*
bridge
,
T
*
user
,
sdb_callback_t
cb
)
{
EB_RETURN_OR_THROW
(
"Device::sdb_scan_bus"
,
eb_sdb_scan_bus
(
device
,
bridge
,
user
,
cb
));
}
template
<
typename
T
>
inline
EB_STATUS_OR_VOID_T
Device
::
sdb_scan_bus2
(
const
struct
sdb_bridge
*
bridge
,
eb_address_t
msi_base
,
T
*
user
,
sdb_callback2_t
cb
)
{
EB_RETURN_OR_THROW
(
"Device::sdb_scan_bus2"
,
eb_sdb_scan_bus2
(
device
,
bridge
,
msi_base
,
user
,
cb
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment