[PATCH 14/19] powerpc: hvc enablement for CMO
From: Robert Jennings <hidden>
Date: 2008-06-12 22:23:31
=46rom: Robert Jennings [off-list ref] Define a get_io_entitlement function so that it can function in a Cooperative Memory Overcommitment (CMO) environment (it returns 0 to indicate that no IO entitlement is required, as the driver does not perform DMA operations). Signed-off-by: Robert Jennings <redacted> --- drivers/char/hvc_vio.c | 6 ++++++ 1 file changed, 6 insertions(+) Index: b/drivers/char/hvc_vio.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- a/drivers/char/hvc_vio.c
+++ b/drivers/char/hvc_vio.c@@ -82,6 +82,11 @@ static struct hv_ops hvc_get_put_ops =3D { .put_chars =3D hvc_put_chars, };
=20
+unsigned long hvc_io_entitlement(struct vio_dev *vdev)
+{
+ return 0;
+}
+
static int __devinit hvc_vio_probe(struct vio_dev *vdev,
const struct vio_device_id *id)
{@@ -111,6 +116,7 @@ static struct vio_driver hvc_vio_driver=20 .id_table =3D hvc_driver_table, .probe =3D hvc_vio_probe, .remove =3D hvc_vio_remove, + .get_io_entitlement =3D hvc_io_entitlement, .driver =3D { .name =3D hvc_driver_name, .owner =3D THIS_MODULE,