]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - drivers/visorbus/visorbus_private.h
Merge tag 'auxdisplay-for-linus-v5.9-rc1' of git://github.com/ojeda/linux
[mirror_ubuntu-hirsute-kernel.git] / drivers / visorbus / visorbus_private.h
CommitLineData
af831145 1/* SPDX-License-Identifier: GPL-2.0 */
eb30ed58 2/*
6f14cc18 3 * Copyright (C) 2010 - 2015 UNISYS CORPORATION
12e364b9 4 * All rights reserved.
12e364b9
KC
5 */
6
7339cb09
DB
7#ifndef __VISORBUS_PRIVATE_H__
8#define __VISORBUS_PRIVATE_H__
12e364b9 9
90addb02 10#include <linux/uuid.h>
e82ed633 11#include <linux/utsname.h>
93d3ad90 12#include <linux/visorbus.h>
90addb02 13
12e364b9 14#include "controlvmchannel.h"
b6d0fa15 15#include "vbuschannel.h"
43c0ab0e 16
69a4d1e7
DK
17struct visor_device *visorbus_get_device_by_id(u32 bus_no, u32 dev_no,
18 struct visor_device *from);
fdf5b9ac 19int visorbus_create_instance(struct visor_device *dev);
a7093ba1 20void visorbus_remove_instance(struct visor_device *bus_info);
51c0f81c 21int create_visor_device(struct visor_device *dev_info);
b74856b4 22void remove_visor_device(struct visor_device *dev_info);
c0b44136
SW
23int visorchipset_device_pause(struct visor_device *dev_info);
24int visorchipset_device_resume(struct visor_device *dev_info);
76956aa7 25void visorbus_response(struct visor_device *p, int response, int controlvm_id);
722e73d5
SW
26void visorbus_device_changestate_response(struct visor_device *p, int response,
27 struct visor_segment_state state);
55c67dca 28int visorbus_init(void);
c79b28f7 29void visorbus_exit(void);
e9b18f3b 30
90bb5c1f 31/* visorchannel access functions */
d7f1589a 32struct visorchannel *visorchannel_create(u64 physaddr, gfp_t gfp,
90476670 33 const guid_t *guid, bool needs_lock);
e9b18f3b
DB
34void visorchannel_destroy(struct visorchannel *channel);
35int visorchannel_read(struct visorchannel *channel, ulong offset,
9ed146cd 36 void *dest, ulong nbytes);
e9b18f3b 37int visorchannel_write(struct visorchannel *channel, ulong offset,
9ed146cd 38 void *dest, ulong nbytes);
e9b18f3b
DB
39u64 visorchannel_get_physaddr(struct visorchannel *channel);
40ulong visorchannel_get_nbytes(struct visorchannel *channel);
41char *visorchannel_id(struct visorchannel *channel, char *s);
42char *visorchannel_zoneid(struct visorchannel *channel, char *s);
43u64 visorchannel_get_clientpartition(struct visorchannel *channel);
44int visorchannel_set_clientpartition(struct visorchannel *channel,
45 u64 partition_handle);
b32c5cb8 46char *visorchannel_guid_id(const guid_t *guid, char *s);
5da77f37 47void *visorchannel_get_header(struct visorchannel *channel);
12e364b9 48#endif