Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1417904
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | David Kershner <david.kershner@unisys.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH v4 21/29] staging: unisys: visorbus: Move visorbus-unique functions to private header |
| Date | Wed, 08 Jun 2016 23:30:02 +0200 |
| Message-ID | <rHTd0-5vo-35@gated-at.bofh.it> (permalink) |
| References | <rHT3k-5qw-5@gated-at.bofh.it> |
| X-Brightmail-Tracker | H4sIAAAAAAAAA+NgFjrJIsWRWlGSWpSXmKPExsVywNY2U/dgV0S 4wfcPqhYL25awWFzeNYfNgcnj8ya5AMYo1sy8pPyKBNaMq3862QrmqlU8/2LWwHhYsYuRi0NI YBejxOMDPSwQziFGiQsb/7PCOV9O3IFyLjFKrJ59nwnCWcsocXbBG0YIZwujxI1Hn5i7GDk52 AQMJGbeucsOYosInGeReHorF8QWFkiV2HjoF1gNi4CKxLYfJ4FqODh4BbwkjvyqAglLCMhJnD w2mRXE5gQKP/y1lgnEFhLwlGh595gdwlaTOHz2ERtEfbBE75VpYCN5BQQlTs58wgJiMwtISBx 88YJ5AqPQLCSpWUhSCxiZVjFqFKcWlaUW6Rqa6iUVZaZnlOQmZuboGhpY6OWmFhcnpqfmJCYV 6yXn525iBAZxPQMD4w7GA8/dDzFKcjApifKWuUeEC/El5adUZiQWZ8QXleakFh9ilOHgUJLgT e4EygkWpaanVqRl5gDjCSYtwcGjJMJ7EiTNW1yQmFucmQ6ROsWoKCXOuxgkIQCSyCjNg2uDxf AlRlkpYV5GBgYGIZ6C1KLczBJU+VeM4hyMSsK8y0Cm8GTmlcBNfwW0mAlo8fIj4SCLSxIRUlI NjIHP137yffhB7orlymtW6he+Gxy/dHAWi6bcTNFaWf8L36dd6pyUPbf7QN2KhfPL9HV8M2dJ LpzTvsF23bznHxO5zz9WZi6a9634c7iDwak0xXCBt1qmV+d6+0zeUP1QMmqzkPT/Rd6BDKcdL nxWejE/dF72ZwUrll1XzUwtH2aE25owKZzZ+l+JpTgj0VCLuag4EQBdeXWU3AIAAA== |
| X-Env-Sender | David.Kershner@unisys.com |
| X-Msg-Ref | server-5.tower-46.messagelabs.com!1465420478!29097732!13 |
| X-Originating-IP | [192.61.61.105] |
| X-Starscan-Version | 8.46; banners=-,-,- |
| X-Viruschecked | Checked |
| X-Mailer | git-send-email 1.9.1 |
| X-Originalarrivaltime | 08 Jun 2016 21:14:29.0372 (UTC) FILETIME=[BE7AABC0:01D1C1CA] |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 106 |
| Organization | linux.* mail to news gateway |
| X-Original-Date | Wed, 8 Jun 2016 17:14:15 -0400 |
| X-Original-Message-ID | <1465420463-24982-22-git-send-email-david.kershner@unisys.com> |
| X-Original-References | <1465420463-24982-1-git-send-email-david.kershner@unisys.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1417904 |
Show key headers only | View raw
From: David Binder <david.binder@unisys.com> Moves function prototypes that are unique to visorbus from include/visorbus.h to visorbus/visorbus_private.h. Signed-off-by: David Binder <david.binder@unisys.com> Signed-off-by: David Kershner <david.kershner@unisys.com> Reviewed-by: Tim Sell <Timothy.Sell@unisys.com> --- drivers/staging/unisys/include/visorbus.h | 25 -------------------- drivers/staging/unisys/visorbus/visorbus_private.h | 27 ++++++++++++++++++++++ drivers/staging/unisys/visorbus/visorchannel.c | 1 + 3 files changed, 28 insertions(+), 25 deletions(-) diff --git a/drivers/staging/unisys/include/visorbus.h b/drivers/staging/unisys/include/visorbus.h index fb53a65..666a04e 100644 --- a/drivers/staging/unisys/include/visorbus.h +++ b/drivers/staging/unisys/include/visorbus.h @@ -187,37 +187,12 @@ int visorbus_write_channel(struct visor_device *dev, void visorbus_enable_channel_interrupts(struct visor_device *dev); void visorbus_disable_channel_interrupts(struct visor_device *dev); -/* Note that for visorchannel_create() - * <channel_bytes> and <guid> arguments may be 0 if we are a channel CLIENT. - * In this case, the values can simply be read from the channel header. - */ -struct visorchannel *visorchannel_create(u64 physaddr, - unsigned long channel_bytes, - gfp_t gfp, uuid_le guid); -struct visorchannel *visorchannel_create_with_lock(u64 physaddr, - unsigned long channel_bytes, - gfp_t gfp, uuid_le guid); -void visorchannel_destroy(struct visorchannel *channel); -int visorchannel_read(struct visorchannel *channel, ulong offset, - void *local, ulong nbytes); -int visorchannel_write(struct visorchannel *channel, ulong offset, - void *local, ulong nbytes); bool visorchannel_signalremove(struct visorchannel *channel, u32 queue, void *msg); bool visorchannel_signalinsert(struct visorchannel *channel, u32 queue, void *msg); bool visorchannel_signalempty(struct visorchannel *channel, u32 queue); - -u64 visorchannel_get_physaddr(struct visorchannel *channel); -ulong visorchannel_get_nbytes(struct visorchannel *channel); -char *visorchannel_id(struct visorchannel *channel, char *s); -char *visorchannel_zoneid(struct visorchannel *channel, char *s); -u64 visorchannel_get_clientpartition(struct visorchannel *channel); -int visorchannel_set_clientpartition(struct visorchannel *channel, - u64 partition_handle); uuid_le visorchannel_get_uuid(struct visorchannel *channel); -char *visorchannel_uuid_id(uuid_le *guid, char *s); -void __iomem *visorchannel_get_header(struct visorchannel *channel); #define BUS_ROOT_DEVICE UINT_MAX struct visor_device *visorbus_get_device_by_id(u32 bus_no, u32 dev_no, diff --git a/drivers/staging/unisys/visorbus/visorbus_private.h b/drivers/staging/unisys/visorbus/visorbus_private.h index 39edd20..31b5ca9 100644 --- a/drivers/staging/unisys/visorbus/visorbus_private.h +++ b/drivers/staging/unisys/visorbus/visorbus_private.h @@ -65,4 +65,31 @@ visorchipset_register_busdev( /* visorbus init and exit functions */ int visorbus_init(void); void visorbus_exit(void); + +/* Visorchannel access functions */ + +/* Note that for visorchannel_create() + * <channel_bytes> and <guid> arguments may be 0 if we are a channel CLIENT. + * In this case, the values can simply be read from the channel header. + */ +struct visorchannel *visorchannel_create(u64 physaddr, + unsigned long channel_bytes, + gfp_t gfp, uuid_le guid); +struct visorchannel *visorchannel_create_with_lock(u64 physaddr, + unsigned long channel_bytes, + gfp_t gfp, uuid_le guid); +void visorchannel_destroy(struct visorchannel *channel); +int visorchannel_read(struct visorchannel *channel, ulong offset, + void *local, ulong nbytes); +int visorchannel_write(struct visorchannel *channel, ulong offset, + void *local, ulong nbytes); +u64 visorchannel_get_physaddr(struct visorchannel *channel); +ulong visorchannel_get_nbytes(struct visorchannel *channel); +char *visorchannel_id(struct visorchannel *channel, char *s); +char *visorchannel_zoneid(struct visorchannel *channel, char *s); +u64 visorchannel_get_clientpartition(struct visorchannel *channel); +int visorchannel_set_clientpartition(struct visorchannel *channel, + u64 partition_handle); +char *visorchannel_uuid_id(uuid_le *guid, char *s); +void __iomem *visorchannel_get_header(struct visorchannel *channel); #endif diff --git a/drivers/staging/unisys/visorbus/visorchannel.c b/drivers/staging/unisys/visorbus/visorchannel.c index 0ddfe05..fbae66e 100644 --- a/drivers/staging/unisys/visorbus/visorchannel.c +++ b/drivers/staging/unisys/visorbus/visorchannel.c @@ -25,6 +25,7 @@ #include "version.h" #include "visorbus.h" #include "controlvmchannel.h" +#include "visorbus_private.h" #define MYDRVNAME "visorchannel" -- 1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v4 00/29] Fixed issues raised by tglx, then move visorbus to drivers/virt David Kershner <david.kershner@unisys.com> - 2016-06-08 23:30 +0200 [PATCH v4 21/29] staging: unisys: visorbus: Move visorbus-unique functions to private header David Kershner <david.kershner@unisys.com> - 2016-06-08 23:30 +0200
csiph-web