blob: aafbb34765b066b7572b02e7a9dbe094bc7f7230 [file] [log] [blame]
Thomas Gleixnerc942fdd2019-05-27 08:55:06 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 *
4 * (c) 2004 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
Linus Torvalds1da177e2005-04-16 15:20:36 -07005 */
6
Mauro Carvalho Chehab9a12ccf2015-04-30 06:44:56 -03007#include "saa7134.h"
8#include "saa7134-reg.h"
9
Linus Torvalds1da177e2005-04-16 15:20:36 -070010#include <linux/init.h>
11#include <linux/list.h>
12#include <linux/module.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#include <linux/kernel.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#include <linux/delay.h>
15
Michael Krufky5e453dc2006-01-09 15:32:31 -020016#include <media/v4l2-common.h>
Hans Verkuila2004502013-12-14 08:28:28 -030017#include <media/v4l2-event.h>
18
Linus Torvalds1da177e2005-04-16 15:20:36 -070019/* ------------------------------------------------------------------ */
20
21MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]");
22MODULE_LICENSE("GPL");
23
24static unsigned int empress_nr[] = {[0 ... (SAA7134_MAXBOARDS - 1)] = UNSET };
Mauro Carvalho Chehab674434c2005-12-12 00:37:28 -080025
Linus Torvalds1da177e2005-04-16 15:20:36 -070026module_param_array(empress_nr, int, NULL, 0444);
27MODULE_PARM_DESC(empress_nr,"ts device number");
28
Linus Torvalds1da177e2005-04-16 15:20:36 -070029/* ------------------------------------------------------------------ */
30
Hans Verkuil2ada8152014-04-17 07:30:53 -030031static int start_streaming(struct vb2_queue *vq, unsigned int count)
Linus Torvalds1da177e2005-04-16 15:20:36 -070032{
Hans Verkuil2ada8152014-04-17 07:30:53 -030033 struct saa7134_dmaqueue *dmaq = vq->drv_priv;
34 struct saa7134_dev *dev = dmaq->dev;
Dmitry Belimovf03813e2008-08-26 13:44:40 -030035 u32 leading_null_bytes = 0;
Hans Verkuil2ada8152014-04-17 07:30:53 -030036 int err;
37
38 err = saa7134_ts_start_streaming(vq, count);
39 if (err)
40 return err;
Hans Verkuil86b79d662006-06-18 16:40:10 -030041
Dmitry Belimovf03813e2008-08-26 13:44:40 -030042 /* If more cards start to need this, then this
43 should probably be added to the card definitions. */
44 switch (dev->board) {
45 case SAA7134_BOARD_BEHOLD_M6:
46 case SAA7134_BOARD_BEHOLD_M63:
47 case SAA7134_BOARD_BEHOLD_M6_EXTRA:
48 leading_null_bytes = 1;
49 break;
50 }
Hans Verkuilfac6986c2009-01-17 12:17:14 -030051 saa_call_all(dev, core, init, leading_null_bytes);
Hans Verkuil2ada8152014-04-17 07:30:53 -030052 /* Unmute audio */
53 saa_writeb(SAA7134_AUDIO_MUTE_CTRL,
54 saa_readb(SAA7134_AUDIO_MUTE_CTRL) & ~(1 << 6));
Linus Torvalds1da177e2005-04-16 15:20:36 -070055 dev->empress_started = 1;
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -080056 return 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -070057}
58
Hans Verkuil2ada8152014-04-17 07:30:53 -030059static void stop_streaming(struct vb2_queue *vq)
Hans Verkuil51aefd72014-04-17 04:23:07 -030060{
Hans Verkuil2ada8152014-04-17 07:30:53 -030061 struct saa7134_dmaqueue *dmaq = vq->drv_priv;
62 struct saa7134_dev *dev = dmaq->dev;
Hans Verkuil51aefd72014-04-17 04:23:07 -030063
Hans Verkuil2ada8152014-04-17 07:30:53 -030064 saa7134_ts_stop_streaming(vq);
Hans Verkuil51aefd72014-04-17 04:23:07 -030065 saa_writeb(SAA7134_SPECIAL_MODE, 0x00);
Hans Verkuil2ada8152014-04-17 07:30:53 -030066 msleep(20);
Hans Verkuil51aefd72014-04-17 04:23:07 -030067 saa_writeb(SAA7134_SPECIAL_MODE, 0x01);
68 msleep(100);
Hans Verkuil2ada8152014-04-17 07:30:53 -030069 /* Mute audio */
70 saa_writeb(SAA7134_AUDIO_MUTE_CTRL,
71 saa_readb(SAA7134_AUDIO_MUTE_CTRL) | (1 << 6));
Hans Verkuil51aefd72014-04-17 04:23:07 -030072 dev->empress_started = 0;
73}
74
Julia Lawall10accd22016-09-08 20:59:18 -030075static const struct vb2_ops saa7134_empress_qops = {
Hans Verkuil2ada8152014-04-17 07:30:53 -030076 .queue_setup = saa7134_ts_queue_setup,
77 .buf_init = saa7134_ts_buffer_init,
78 .buf_prepare = saa7134_ts_buffer_prepare,
Hans Verkuil2ada8152014-04-17 07:30:53 -030079 .buf_queue = saa7134_vb2_buffer_queue,
80 .wait_prepare = vb2_ops_wait_prepare,
81 .wait_finish = vb2_ops_wait_finish,
82 .start_streaming = start_streaming,
83 .stop_streaming = stop_streaming,
84};
85
Linus Torvalds1da177e2005-04-16 15:20:36 -070086/* ------------------------------------------------------------------ */
87
Hans Verkuil78b526a2008-05-28 12:16:41 -030088static int empress_enum_fmt_vid_cap(struct file *file, void *priv,
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -030089 struct v4l2_fmtdesc *f)
90{
91 if (f->index != 0)
92 return -EINVAL;
93
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -030094 f->pixelformat = V4L2_PIX_FMT_MPEG;
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -030095 return 0;
96}
97
Hans Verkuil78b526a2008-05-28 12:16:41 -030098static int empress_g_fmt_vid_cap(struct file *file, void *priv,
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -030099 struct v4l2_format *f)
100{
Hans Verkuilb9f63b22013-12-14 08:28:26 -0300101 struct saa7134_dev *dev = video_drvdata(file);
Hans Verkuilda298c62015-04-09 04:02:34 -0300102 struct v4l2_subdev_format fmt = {
103 .which = V4L2_SUBDEV_FORMAT_ACTIVE,
104 };
105 struct v4l2_mbus_framefmt *mbus_fmt = &fmt.format;
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -0300106
Hans Verkuilda298c62015-04-09 04:02:34 -0300107 saa_call_all(dev, pad, get_fmt, NULL, &fmt);
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -0300108
Hans Verkuilda298c62015-04-09 04:02:34 -0300109 v4l2_fill_pix_format(&f->fmt.pix, mbus_fmt);
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -0300110 f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG;
111 f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets;
Hans Verkuilcabc6502013-06-01 10:02:38 -0300112 f->fmt.pix.bytesperline = 0;
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -0300113
114 return 0;
115}
116
Hans Verkuil78b526a2008-05-28 12:16:41 -0300117static int empress_s_fmt_vid_cap(struct file *file, void *priv,
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -0300118 struct v4l2_format *f)
119{
Hans Verkuilb9f63b22013-12-14 08:28:26 -0300120 struct saa7134_dev *dev = video_drvdata(file);
Hans Verkuilebf984b2015-04-09 04:05:59 -0300121 struct v4l2_subdev_format format = {
122 .which = V4L2_SUBDEV_FORMAT_ACTIVE,
123 };
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -0300124
Hans Verkuilebf984b2015-04-09 04:05:59 -0300125 v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED);
126 saa_call_all(dev, pad, set_fmt, NULL, &format);
127 v4l2_fill_pix_format(&f->fmt.pix, &format.format);
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -0300128
129 f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG;
130 f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets;
Hans Verkuilcabc6502013-06-01 10:02:38 -0300131 f->fmt.pix.bytesperline = 0;
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -0300132
133 return 0;
134}
135
Dmitri Belimov6b6b7542009-05-28 01:58:57 -0300136static int empress_try_fmt_vid_cap(struct file *file, void *priv,
137 struct v4l2_format *f)
138{
Hans Verkuilb9f63b22013-12-14 08:28:26 -0300139 struct saa7134_dev *dev = video_drvdata(file);
Hans Verkuil5eab4982015-04-09 04:05:35 -0300140 struct v4l2_subdev_pad_config pad_cfg;
Tomi Valkeinen0d346d22021-06-10 17:55:58 +0300141 struct v4l2_subdev_state pad_state = {
142 .pads = &pad_cfg
143 };
Hans Verkuil5eab4982015-04-09 04:05:35 -0300144 struct v4l2_subdev_format format = {
145 .which = V4L2_SUBDEV_FORMAT_TRY,
146 };
Hans Verkuilcabc6502013-06-01 10:02:38 -0300147
Hans Verkuil5eab4982015-04-09 04:05:35 -0300148 v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED);
Tomi Valkeinen0d346d22021-06-10 17:55:58 +0300149 saa_call_all(dev, pad, set_fmt, &pad_state, &format);
Hans Verkuil5eab4982015-04-09 04:05:35 -0300150 v4l2_fill_pix_format(&f->fmt.pix, &format.format);
Dmitri Belimov6b6b7542009-05-28 01:58:57 -0300151
152 f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG;
153 f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets;
Hans Verkuilcabc6502013-06-01 10:02:38 -0300154 f->fmt.pix.bytesperline = 0;
Dmitri Belimov6b6b7542009-05-28 01:58:57 -0300155
156 return 0;
157}
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -0300158
Hans Verkuilbec43662008-12-30 06:58:20 -0300159static const struct v4l2_file_operations ts_fops =
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160{
161 .owner = THIS_MODULE,
Hans Verkuil2ada8152014-04-17 07:30:53 -0300162 .open = v4l2_fh_open,
163 .release = vb2_fop_release,
164 .read = vb2_fop_read,
165 .poll = vb2_fop_poll,
166 .mmap = vb2_fop_mmap,
Hans Verkuil13936af2014-06-16 04:32:37 -0300167 .unlocked_ioctl = video_ioctl2,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700168};
169
Hans Verkuila3998102008-07-21 02:57:38 -0300170static const struct v4l2_ioctl_ops ts_ioctl_ops = {
Hans Verkuilb93a18d2013-12-14 08:28:25 -0300171 .vidioc_querycap = saa7134_querycap,
Hans Verkuil78b526a2008-05-28 12:16:41 -0300172 .vidioc_enum_fmt_vid_cap = empress_enum_fmt_vid_cap,
Dmitri Belimov6b6b7542009-05-28 01:58:57 -0300173 .vidioc_try_fmt_vid_cap = empress_try_fmt_vid_cap,
Hans Verkuil78b526a2008-05-28 12:16:41 -0300174 .vidioc_s_fmt_vid_cap = empress_s_fmt_vid_cap,
175 .vidioc_g_fmt_vid_cap = empress_g_fmt_vid_cap,
Hans Verkuil2ada8152014-04-17 07:30:53 -0300176 .vidioc_reqbufs = vb2_ioctl_reqbufs,
177 .vidioc_querybuf = vb2_ioctl_querybuf,
178 .vidioc_qbuf = vb2_ioctl_qbuf,
179 .vidioc_dqbuf = vb2_ioctl_dqbuf,
Hans Verkuil9f183022015-12-14 08:17:00 -0200180 .vidioc_expbuf = vb2_ioctl_expbuf,
Hans Verkuil2ada8152014-04-17 07:30:53 -0300181 .vidioc_streamon = vb2_ioctl_streamon,
182 .vidioc_streamoff = vb2_ioctl_streamoff,
Hans Verkuilb93a18d2013-12-14 08:28:25 -0300183 .vidioc_g_frequency = saa7134_g_frequency,
184 .vidioc_s_frequency = saa7134_s_frequency,
185 .vidioc_g_tuner = saa7134_g_tuner,
186 .vidioc_s_tuner = saa7134_s_tuner,
187 .vidioc_enum_input = saa7134_enum_input,
188 .vidioc_g_input = saa7134_g_input,
189 .vidioc_s_input = saa7134_s_input,
190 .vidioc_s_std = saa7134_s_std,
191 .vidioc_g_std = saa7134_g_std,
Mikhail Domrachev707b7f82014-04-01 09:28:17 -0300192 .vidioc_querystd = saa7134_querystd,
Hans Verkuila2004502013-12-14 08:28:28 -0300193 .vidioc_log_status = v4l2_ctrl_log_status,
194 .vidioc_subscribe_event = v4l2_ctrl_subscribe_event,
195 .vidioc_unsubscribe_event = v4l2_event_unsubscribe,
Hans Verkuila3998102008-07-21 02:57:38 -0300196};
197
198/* ----------------------------------------------------------- */
199
Bhumika Goyal507e1902017-08-26 09:08:11 -0400200static const struct video_device saa7134_empress_template = {
Hans Verkuila3998102008-07-21 02:57:38 -0300201 .name = "saa7134-empress",
Hans Verkuila3998102008-07-21 02:57:38 -0300202 .fops = &ts_fops,
Hans Verkuila3998102008-07-21 02:57:38 -0300203 .ioctl_ops = &ts_ioctl_ops,
Mauro Carvalho Chehab2c10e8a2007-12-11 12:56:23 -0300204
205 .tvnorms = SAA7134_NORMS,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700206};
207
David Howellsc4028952006-11-22 14:57:56 +0000208static void empress_signal_update(struct work_struct *work)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700209{
David Howellsc4028952006-11-22 14:57:56 +0000210 struct saa7134_dev* dev =
211 container_of(work, struct saa7134_dev, empress_workqueue);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700212
213 if (dev->nosignal) {
Mauro Carvalho Chehabe43c1732015-04-30 07:12:19 -0300214 pr_debug("no video signal\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700215 } else {
Mauro Carvalho Chehabe43c1732015-04-30 07:12:19 -0300216 pr_debug("video signal acquired\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700217 }
218}
219
220static void empress_signal_change(struct saa7134_dev *dev)
221{
222 schedule_work(&dev->empress_workqueue);
223}
224
Hans Verkuil718bde12013-12-14 08:28:24 -0300225static bool empress_ctrl_filter(const struct v4l2_ctrl *ctrl)
226{
227 switch (ctrl->id) {
228 case V4L2_CID_BRIGHTNESS:
229 case V4L2_CID_HUE:
230 case V4L2_CID_CONTRAST:
231 case V4L2_CID_SATURATION:
232 case V4L2_CID_AUDIO_MUTE:
233 case V4L2_CID_AUDIO_VOLUME:
234 case V4L2_CID_PRIVATE_INVERT:
235 case V4L2_CID_PRIVATE_AUTOMUTE:
236 return true;
237 default:
238 return false;
239 }
240}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700241
242static int empress_init(struct saa7134_dev *dev)
243{
Hans Verkuil718bde12013-12-14 08:28:24 -0300244 struct v4l2_ctrl_handler *hdl = &dev->empress_ctrl_handler;
Hans Verkuil2ada8152014-04-17 07:30:53 -0300245 struct vb2_queue *q;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700246 int err;
247
Mauro Carvalho Chehab6139ebc2015-05-13 14:09:42 -0300248 pr_debug("%s: %s\n", dev->name, __func__);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700249 dev->empress_dev = video_device_alloc();
250 if (NULL == dev->empress_dev)
251 return -ENOMEM;
252 *(dev->empress_dev) = saa7134_empress_template;
Hans Verkuild481c582013-06-20 10:57:10 -0300253 dev->empress_dev->v4l2_dev = &dev->v4l2_dev;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700254 dev->empress_dev->release = video_device_release;
Hans Verkuil2ada8152014-04-17 07:30:53 -0300255 dev->empress_dev->lock = &dev->lock;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700256 snprintf(dev->empress_dev->name, sizeof(dev->empress_dev->name),
257 "%s empress (%s)", dev->name,
258 saa7134_boards[dev->board].name);
Hans Verkuil718bde12013-12-14 08:28:24 -0300259 v4l2_ctrl_handler_init(hdl, 21);
Hans Verkuilda1b1ae2018-05-21 04:54:36 -0400260 v4l2_ctrl_add_handler(hdl, &dev->ctrl_handler, empress_ctrl_filter, false);
Hans Verkuil718bde12013-12-14 08:28:24 -0300261 if (dev->empress_sd)
Hans Verkuilda1b1ae2018-05-21 04:54:36 -0400262 v4l2_ctrl_add_handler(hdl, dev->empress_sd->ctrl_handler, NULL, true);
Hans Verkuil718bde12013-12-14 08:28:24 -0300263 if (hdl->error) {
264 video_device_release(dev->empress_dev);
265 return hdl->error;
266 }
267 dev->empress_dev->ctrl_handler = hdl;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700268
David Howellsc4028952006-11-22 14:57:56 +0000269 INIT_WORK(&dev->empress_workqueue, empress_signal_update);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700270
Hans Verkuil2ada8152014-04-17 07:30:53 -0300271 q = &dev->empress_vbq;
272 q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
273 /*
274 * Do not add VB2_USERPTR: the saa7134 DMA engine cannot handle
275 * transfers that do not start at the beginning of a page. A USERPTR
276 * can start anywhere in a page, so USERPTR support is a no-go.
277 */
Hans Verkuil9f183022015-12-14 08:17:00 -0200278 q->io_modes = VB2_MMAP | VB2_DMABUF | VB2_READ;
Hans Verkuil2ada8152014-04-17 07:30:53 -0300279 q->drv_priv = &dev->ts_q;
280 q->ops = &saa7134_empress_qops;
281 q->gfp_flags = GFP_DMA32;
282 q->mem_ops = &vb2_dma_sg_memops;
283 q->buf_struct_size = sizeof(struct saa7134_buf);
284 q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
285 q->lock = &dev->lock;
Hans Verkuild8feef92016-09-18 11:24:50 -0300286 q->dev = &dev->pci->dev;
Hans Verkuil2ada8152014-04-17 07:30:53 -0300287 err = vb2_queue_init(q);
Dinghao Liu15d0c522021-01-02 07:27:22 +0100288 if (err) {
289 video_device_release(dev->empress_dev);
290 dev->empress_dev = NULL;
Hans Verkuil2ada8152014-04-17 07:30:53 -0300291 return err;
Dinghao Liu15d0c522021-01-02 07:27:22 +0100292 }
Hans Verkuil2ada8152014-04-17 07:30:53 -0300293 dev->empress_dev->queue = q;
Hans Verkuil21615362019-06-17 05:36:16 -0400294 dev->empress_dev->device_caps = V4L2_CAP_READWRITE | V4L2_CAP_STREAMING |
295 V4L2_CAP_VIDEO_CAPTURE;
296 if (dev->tuner_type != TUNER_ABSENT && dev->tuner_type != UNSET)
297 dev->empress_dev->device_caps |= V4L2_CAP_TUNER;
Hans Verkuil2ada8152014-04-17 07:30:53 -0300298
Laurent Pinchart63b0d5a2009-12-10 11:44:04 -0200299 video_set_drvdata(dev->empress_dev, dev);
Hans Verkuil3e30a922020-02-03 12:41:17 +0100300 err = video_register_device(dev->empress_dev,VFL_TYPE_VIDEO,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700301 empress_nr[dev->nr]);
302 if (err < 0) {
Mauro Carvalho Chehab83582002015-04-30 06:46:34 -0300303 pr_info("%s: can't register video device\n",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700304 dev->name);
305 video_device_release(dev->empress_dev);
306 dev->empress_dev = NULL;
307 return err;
308 }
Mauro Carvalho Chehab83582002015-04-30 06:46:34 -0300309 pr_info("%s: registered device %s [mpeg]\n",
Laurent Pinchart38c7c032009-11-27 13:57:15 -0300310 dev->name, video_device_node_name(dev->empress_dev));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700311
David Howellsc4028952006-11-22 14:57:56 +0000312 empress_signal_update(&dev->empress_workqueue);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700313 return 0;
314}
315
316static int empress_fini(struct saa7134_dev *dev)
317{
Mauro Carvalho Chehab6139ebc2015-05-13 14:09:42 -0300318 pr_debug("%s: %s\n", dev->name, __func__);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700319
320 if (NULL == dev->empress_dev)
321 return 0;
Tejun Heo43829732012-08-20 14:51:24 -0700322 flush_work(&dev->empress_workqueue);
Hans Verkuil11788d92020-07-13 13:30:44 +0200323 vb2_video_unregister_device(dev->empress_dev);
Hans Verkuil718bde12013-12-14 08:28:24 -0300324 v4l2_ctrl_handler_free(&dev->empress_ctrl_handler);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700325 dev->empress_dev = NULL;
326 return 0;
327}
328
329static struct saa7134_mpeg_ops empress_ops = {
330 .type = SAA7134_MPEG_EMPRESS,
331 .init = empress_init,
332 .fini = empress_fini,
333 .signal_change = empress_signal_change,
334};
335
336static int __init empress_register(void)
337{
338 return saa7134_ts_register(&empress_ops);
339}
340
341static void __exit empress_unregister(void)
342{
343 saa7134_ts_unregister(&empress_ops);
344}
345
346module_init(empress_register);
347module_exit(empress_unregister);