blob: 9d26c9737e2127066e80af152f61584a59b98b41 [file] [log] [blame]
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +01001/*
2 * cdrom.c IOCTLs handling for ide-cd driver.
3 *
4 * Copyright (C) 1994-1996 Scott Snyder <snyder@fnald0.fnal.gov>
5 * Copyright (C) 1996-1998 Erik Andersen <andersee@debian.org>
6 * Copyright (C) 1998-2000 Jens Axboe <axboe@suse.de>
7 */
8
9#include <linux/kernel.h>
10#include <linux/cdrom.h>
Tejun Heo5a0e3ad2010-03-24 17:04:11 +090011#include <linux/gfp.h>
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +010012#include <linux/ide.h>
Borislav Petkovf9afd182008-02-01 23:09:29 +010013#include <scsi/scsi.h>
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +010014
15#include "ide-cd.h"
16
Borislav Petkovf9afd182008-02-01 23:09:29 +010017/****************************************************************************
18 * Other driver requests (open, close, check media change).
19 */
20int ide_cdrom_open_real(struct cdrom_device_info *cdi, int purpose)
21{
22 return 0;
23}
24
25/*
26 * Close down the device. Invalidate all cached blocks.
27 */
28void ide_cdrom_release_real(struct cdrom_device_info *cdi)
29{
30 ide_drive_t *drive = cdi->handle;
Borislav Petkovf9afd182008-02-01 23:09:29 +010031
32 if (!cdi->use_count)
Borislav Petkov570f89e2008-07-23 19:56:02 +020033 drive->atapi_flags &= ~IDE_AFLAG_TOC_VALID;
Borislav Petkovf9afd182008-02-01 23:09:29 +010034}
35
36/*
37 * add logic to try GET_EVENT command first to check for media and tray
38 * status. this should be supported by newer cd-r/w and all DVD etc
39 * drives
40 */
41int ide_cdrom_drive_status(struct cdrom_device_info *cdi, int slot_nr)
42{
43 ide_drive_t *drive = cdi->handle;
44 struct media_event_desc med;
45 struct request_sense sense;
46 int stat;
47
48 if (slot_nr != CDSL_CURRENT)
49 return -EINVAL;
50
51 stat = cdrom_check_status(drive, &sense);
52 if (!stat || sense.sense_key == UNIT_ATTENTION)
53 return CDS_DISC_OK;
54
55 if (!cdrom_get_media_event(cdi, &med)) {
56 if (med.media_present)
57 return CDS_DISC_OK;
58 else if (med.door_open)
59 return CDS_TRAY_OPEN;
60 else
61 return CDS_NO_DISC;
62 }
63
64 if (sense.sense_key == NOT_READY && sense.asc == 0x04
65 && sense.ascq == 0x04)
66 return CDS_DISC_OK;
67
68 /*
69 * If not using Mt Fuji extended media tray reports,
70 * just return TRAY_OPEN since ATAPI doesn't provide
71 * any other way to detect this...
72 */
73 if (sense.sense_key == NOT_READY) {
74 if (sense.asc == 0x3a && sense.ascq == 1)
75 return CDS_NO_DISC;
76 else
77 return CDS_TRAY_OPEN;
78 }
79 return CDS_DRIVE_NOT_READY;
80}
81
Tejun Heo7eec77a2011-04-21 19:43:59 +020082/*
83 * ide-cd always generates media changed event if media is missing, which
84 * makes it impossible to use for proper event reporting, so disk->events
85 * is cleared to 0 and the following function is used only to trigger
86 * revalidation and never propagated to userland.
87 */
Tejun Heo5b03a1b2011-03-09 19:54:27 +010088unsigned int ide_cdrom_check_events_real(struct cdrom_device_info *cdi,
89 unsigned int clearing, int slot_nr)
Borislav Petkovf9afd182008-02-01 23:09:29 +010090{
91 ide_drive_t *drive = cdi->handle;
Borislav Petkovf9afd182008-02-01 23:09:29 +010092 int retval;
93
94 if (slot_nr == CDSL_CURRENT) {
95 (void) cdrom_check_status(drive, NULL);
Bartlomiej Zolnierkiewiczfe11edf2008-10-17 18:09:11 +020096 retval = (drive->dev_flags & IDE_DFLAG_MEDIA_CHANGED) ? 1 : 0;
97 drive->dev_flags &= ~IDE_DFLAG_MEDIA_CHANGED;
Tejun Heo5b03a1b2011-03-09 19:54:27 +010098 return retval ? DISK_EVENT_MEDIA_CHANGE : 0;
Borislav Petkovf9afd182008-02-01 23:09:29 +010099 } else {
Tejun Heo5b03a1b2011-03-09 19:54:27 +0100100 return 0;
Borislav Petkovf9afd182008-02-01 23:09:29 +0100101 }
102}
103
104/* Eject the disk if EJECTFLAG is 0.
105 If EJECTFLAG is 1, try to reload the disk. */
106static
107int cdrom_eject(ide_drive_t *drive, int ejectflag,
108 struct request_sense *sense)
109{
110 struct cdrom_info *cd = drive->driver_data;
111 struct cdrom_device_info *cdi = &cd->devinfo;
Borislav Petkovf9afd182008-02-01 23:09:29 +0100112 char loej = 0x02;
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200113 unsigned char cmd[BLK_MAX_CDB];
Borislav Petkovf9afd182008-02-01 23:09:29 +0100114
Borislav Petkov570f89e2008-07-23 19:56:02 +0200115 if ((drive->atapi_flags & IDE_AFLAG_NO_EJECT) && !ejectflag)
Borislav Petkovf9afd182008-02-01 23:09:29 +0100116 return -EDRIVE_CANT_DO_THIS;
117
118 /* reload fails on some drives, if the tray is locked */
Borislav Petkov570f89e2008-07-23 19:56:02 +0200119 if ((drive->atapi_flags & IDE_AFLAG_DOOR_LOCKED) && ejectflag)
Borislav Petkovf9afd182008-02-01 23:09:29 +0100120 return 0;
121
Borislav Petkovf9afd182008-02-01 23:09:29 +0100122 /* only tell drive to close tray if open, if it can do that */
123 if (ejectflag && (cdi->mask & CDC_CLOSE_TRAY))
124 loej = 0;
125
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200126 memset(cmd, 0, BLK_MAX_CDB);
Borislav Petkovf9afd182008-02-01 23:09:29 +0100127
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200128 cmd[0] = GPCMD_START_STOP_UNIT;
129 cmd[4] = loej | (ejectflag != 0);
130
Harvey Harrison1a677ab2008-07-23 19:56:02 +0200131 return ide_cd_queue_pc(drive, cmd, 0, NULL, NULL, sense, 0, 0);
Borislav Petkovf9afd182008-02-01 23:09:29 +0100132}
133
134/* Lock the door if LOCKFLAG is nonzero; unlock it otherwise. */
135static
136int ide_cd_lockdoor(ide_drive_t *drive, int lockflag,
137 struct request_sense *sense)
138{
Borislav Petkovf9afd182008-02-01 23:09:29 +0100139 struct request_sense my_sense;
Borislav Petkovf9afd182008-02-01 23:09:29 +0100140 int stat;
141
142 if (sense == NULL)
143 sense = &my_sense;
144
145 /* If the drive cannot lock the door, just pretend. */
Bartlomiej Zolnierkiewicz42619d32008-10-17 18:09:11 +0200146 if ((drive->dev_flags & IDE_DFLAG_DOORLOCKING) == 0) {
Borislav Petkovf9afd182008-02-01 23:09:29 +0100147 stat = 0;
148 } else {
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200149 unsigned char cmd[BLK_MAX_CDB];
150
151 memset(cmd, 0, BLK_MAX_CDB);
152
153 cmd[0] = GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL;
154 cmd[4] = lockflag ? 1 : 0;
155
Harvey Harrison1a677ab2008-07-23 19:56:02 +0200156 stat = ide_cd_queue_pc(drive, cmd, 0, NULL, NULL,
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200157 sense, 0, 0);
Borislav Petkovf9afd182008-02-01 23:09:29 +0100158 }
159
160 /* If we got an illegal field error, the drive
161 probably cannot lock the door. */
162 if (stat != 0 &&
163 sense->sense_key == ILLEGAL_REQUEST &&
164 (sense->asc == 0x24 || sense->asc == 0x20)) {
165 printk(KERN_ERR "%s: door locking not supported\n",
166 drive->name);
Bartlomiej Zolnierkiewicz42619d32008-10-17 18:09:11 +0200167 drive->dev_flags &= ~IDE_DFLAG_DOORLOCKING;
Borislav Petkovf9afd182008-02-01 23:09:29 +0100168 stat = 0;
169 }
170
171 /* no medium, that's alright. */
172 if (stat != 0 && sense->sense_key == NOT_READY && sense->asc == 0x3a)
173 stat = 0;
174
175 if (stat == 0) {
176 if (lockflag)
Borislav Petkov570f89e2008-07-23 19:56:02 +0200177 drive->atapi_flags |= IDE_AFLAG_DOOR_LOCKED;
Borislav Petkovf9afd182008-02-01 23:09:29 +0100178 else
Borislav Petkov570f89e2008-07-23 19:56:02 +0200179 drive->atapi_flags &= ~IDE_AFLAG_DOOR_LOCKED;
Borislav Petkovf9afd182008-02-01 23:09:29 +0100180 }
181
182 return stat;
183}
184
185int ide_cdrom_tray_move(struct cdrom_device_info *cdi, int position)
186{
187 ide_drive_t *drive = cdi->handle;
188 struct request_sense sense;
189
190 if (position) {
191 int stat = ide_cd_lockdoor(drive, 0, &sense);
192
193 if (stat)
194 return stat;
195 }
196
197 return cdrom_eject(drive, !position, &sense);
198}
199
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100200int ide_cdrom_lock_door(struct cdrom_device_info *cdi, int lock)
201{
202 ide_drive_t *drive = cdi->handle;
203
204 return ide_cd_lockdoor(drive, lock, NULL);
205}
206
207/*
208 * ATAPI devices are free to select the speed you request or any slower
209 * rate. :-( Requesting too fast a speed will _not_ produce an error.
210 */
211int ide_cdrom_select_speed(struct cdrom_device_info *cdi, int speed)
212{
213 ide_drive_t *drive = cdi->handle;
214 struct cdrom_info *cd = drive->driver_data;
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100215 struct request_sense sense;
216 u8 buf[ATAPI_CAPABILITIES_PAGE_SIZE];
217 int stat;
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200218 unsigned char cmd[BLK_MAX_CDB];
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100219
220 if (speed == 0)
221 speed = 0xffff; /* set to max */
222 else
223 speed *= 177; /* Nx to kbytes/s */
224
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200225 memset(cmd, 0, BLK_MAX_CDB);
226
227 cmd[0] = GPCMD_SET_SPEED;
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100228 /* Read Drive speed in kbytes/second MSB/LSB */
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200229 cmd[2] = (speed >> 8) & 0xff;
230 cmd[3] = speed & 0xff;
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100231 if ((cdi->mask & (CDC_CD_R | CDC_CD_RW | CDC_DVD_R)) !=
232 (CDC_CD_R | CDC_CD_RW | CDC_DVD_R)) {
233 /* Write Drive speed in kbytes/second MSB/LSB */
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200234 cmd[4] = (speed >> 8) & 0xff;
235 cmd[5] = speed & 0xff;
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100236 }
237
Harvey Harrison1a677ab2008-07-23 19:56:02 +0200238 stat = ide_cd_queue_pc(drive, cmd, 0, NULL, NULL, &sense, 0, 0);
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100239
240 if (!ide_cdrom_get_capabilities(drive, buf)) {
241 ide_cdrom_update_speed(drive, buf);
242 cdi->speed = cd->current_speed;
243 }
244
245 return 0;
246}
247
248int ide_cdrom_get_last_session(struct cdrom_device_info *cdi,
249 struct cdrom_multisession *ms_info)
250{
251 struct atapi_toc *toc;
252 ide_drive_t *drive = cdi->handle;
253 struct cdrom_info *info = drive->driver_data;
254 struct request_sense sense;
255 int ret;
256
Borislav Petkov570f89e2008-07-23 19:56:02 +0200257 if ((drive->atapi_flags & IDE_AFLAG_TOC_VALID) == 0 || !info->toc) {
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100258 ret = ide_cd_read_toc(drive, &sense);
259 if (ret)
260 return ret;
261 }
262
263 toc = info->toc;
264 ms_info->addr.lba = toc->last_session_lba;
265 ms_info->xa_flag = toc->xa_flag;
266
267 return 0;
268}
269
270int ide_cdrom_get_mcn(struct cdrom_device_info *cdi,
271 struct cdrom_mcn *mcn_info)
272{
273 ide_drive_t *drive = cdi->handle;
274 int stat, mcnlen;
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100275 char buf[24];
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200276 unsigned char cmd[BLK_MAX_CDB];
277 unsigned len = sizeof(buf);
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100278
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200279 memset(cmd, 0, BLK_MAX_CDB);
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100280
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200281 cmd[0] = GPCMD_READ_SUBCHANNEL;
282 cmd[1] = 2; /* MSF addressing */
283 cmd[2] = 0x40; /* request subQ data */
284 cmd[3] = 2; /* format */
285 cmd[8] = len;
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100286
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200287 stat = ide_cd_queue_pc(drive, cmd, 0, buf, &len, NULL, 0, 0);
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100288 if (stat)
289 return stat;
290
291 mcnlen = sizeof(mcn_info->medium_catalog_number) - 1;
292 memcpy(mcn_info->medium_catalog_number, buf + 9, mcnlen);
293 mcn_info->medium_catalog_number[mcnlen] = '\0';
294
295 return 0;
296}
297
298int ide_cdrom_reset(struct cdrom_device_info *cdi)
299{
300 ide_drive_t *drive = cdi->handle;
301 struct cdrom_info *cd = drive->driver_data;
302 struct request_sense sense;
FUJITA Tomonori0ef4c4d2008-07-15 21:21:42 +0200303 struct request *rq;
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100304 int ret;
305
Christoph Hellwigaebf5262017-01-31 16:57:31 +0100306 rq = blk_get_request(drive->queue, REQ_OP_DRV_IN, __GFP_RECLAIM);
Christoph Hellwig2f5a8e802017-01-31 16:57:30 +0100307 ide_req(rq)->type = ATA_PRIV_MISC;
Christoph Hellwige8064022016-10-20 15:12:13 +0200308 rq->rq_flags = RQF_QUIET;
Christoph Hellwigb7819b92017-04-20 16:02:55 +0200309 blk_execute_rq(drive->queue, cd->disk, rq, 0);
Christoph Hellwig17d53632017-04-20 16:03:01 +0200310 ret = scsi_req(rq)->result ? -EIO : 0;
FUJITA Tomonori0ef4c4d2008-07-15 21:21:42 +0200311 blk_put_request(rq);
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100312 /*
313 * A reset will unlock the door. If it was previously locked,
314 * lock it again.
315 */
Borislav Petkov570f89e2008-07-23 19:56:02 +0200316 if (drive->atapi_flags & IDE_AFLAG_DOOR_LOCKED)
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100317 (void)ide_cd_lockdoor(drive, 1, &sense);
318
319 return ret;
320}
321
322static int ide_cd_get_toc_entry(ide_drive_t *drive, int track,
323 struct atapi_toc_entry **ent)
324{
325 struct cdrom_info *info = drive->driver_data;
326 struct atapi_toc *toc = info->toc;
327 int ntracks;
328
329 /*
330 * don't serve cached data, if the toc isn't valid
331 */
Borislav Petkov570f89e2008-07-23 19:56:02 +0200332 if ((drive->atapi_flags & IDE_AFLAG_TOC_VALID) == 0)
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100333 return -EINVAL;
334
335 /* Check validity of requested track number. */
336 ntracks = toc->hdr.last_track - toc->hdr.first_track + 1;
337
338 if (toc->hdr.first_track == CDROM_LEADOUT)
339 ntracks = 0;
340
341 if (track == CDROM_LEADOUT)
342 *ent = &toc->ent[ntracks];
343 else if (track < toc->hdr.first_track || track > toc->hdr.last_track)
344 return -EINVAL;
345 else
346 *ent = &toc->ent[track - toc->hdr.first_track];
347
348 return 0;
349}
350
351static int ide_cd_fake_play_trkind(ide_drive_t *drive, void *arg)
352{
353 struct cdrom_ti *ti = arg;
354 struct atapi_toc_entry *first_toc, *last_toc;
355 unsigned long lba_start, lba_end;
356 int stat;
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100357 struct request_sense sense;
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200358 unsigned char cmd[BLK_MAX_CDB];
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100359
360 stat = ide_cd_get_toc_entry(drive, ti->cdti_trk0, &first_toc);
361 if (stat)
362 return stat;
363
364 stat = ide_cd_get_toc_entry(drive, ti->cdti_trk1, &last_toc);
365 if (stat)
366 return stat;
367
368 if (ti->cdti_trk1 != CDROM_LEADOUT)
369 ++last_toc;
370 lba_start = first_toc->addr.lba;
371 lba_end = last_toc->addr.lba;
372
373 if (lba_end <= lba_start)
374 return -EINVAL;
375
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200376 memset(cmd, 0, BLK_MAX_CDB);
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100377
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200378 cmd[0] = GPCMD_PLAY_AUDIO_MSF;
379 lba_to_msf(lba_start, &cmd[3], &cmd[4], &cmd[5]);
380 lba_to_msf(lba_end - 1, &cmd[6], &cmd[7], &cmd[8]);
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100381
Harvey Harrison1a677ab2008-07-23 19:56:02 +0200382 return ide_cd_queue_pc(drive, cmd, 0, NULL, NULL, &sense, 0, 0);
Bartlomiej Zolnierkiewicz17802992008-02-01 23:09:25 +0100383}
384
385static int ide_cd_read_tochdr(ide_drive_t *drive, void *arg)
386{
387 struct cdrom_info *cd = drive->driver_data;
388 struct cdrom_tochdr *tochdr = arg;
389 struct atapi_toc *toc;
390 int stat;
391
392 /* Make sure our saved TOC is valid. */
393 stat = ide_cd_read_toc(drive, NULL);
394 if (stat)
395 return stat;
396
397 toc = cd->toc;
398 tochdr->cdth_trk0 = toc->hdr.first_track;
399 tochdr->cdth_trk1 = toc->hdr.last_track;
400
401 return 0;
402}
403
404static int ide_cd_read_tocentry(ide_drive_t *drive, void *arg)
405{
406 struct cdrom_tocentry *tocentry = arg;
407 struct atapi_toc_entry *toce;
408 int stat;
409
410 stat = ide_cd_get_toc_entry(drive, tocentry->cdte_track, &toce);
411 if (stat)
412 return stat;
413
414 tocentry->cdte_ctrl = toce->control;
415 tocentry->cdte_adr = toce->adr;
416 if (tocentry->cdte_format == CDROM_MSF) {
417 lba_to_msf(toce->addr.lba,
418 &tocentry->cdte_addr.msf.minute,
419 &tocentry->cdte_addr.msf.second,
420 &tocentry->cdte_addr.msf.frame);
421 } else
422 tocentry->cdte_addr.lba = toce->addr.lba;
423
424 return 0;
425}
426
427int ide_cdrom_audio_ioctl(struct cdrom_device_info *cdi,
428 unsigned int cmd, void *arg)
429{
430 ide_drive_t *drive = cdi->handle;
431
432 switch (cmd) {
433 /*
434 * emulate PLAY_AUDIO_TI command with PLAY_AUDIO_10, since
435 * atapi doesn't support it
436 */
437 case CDROMPLAYTRKIND:
438 return ide_cd_fake_play_trkind(drive, arg);
439 case CDROMREADTOCHDR:
440 return ide_cd_read_tochdr(drive, arg);
441 case CDROMREADTOCENTRY:
442 return ide_cd_read_tocentry(drive, arg);
443 default:
444 return -EINVAL;
445 }
446}
Borislav Petkovf9afd182008-02-01 23:09:29 +0100447
448/* the generic packet interface to cdrom.c */
449int ide_cdrom_packet(struct cdrom_device_info *cdi,
450 struct packet_command *cgc)
451{
Borislav Petkovf9afd182008-02-01 23:09:29 +0100452 ide_drive_t *drive = cdi->handle;
Christoph Hellwige8064022016-10-20 15:12:13 +0200453 req_flags_t flags = 0;
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200454 unsigned len = cgc->buflen;
Borislav Petkovf9afd182008-02-01 23:09:29 +0100455
456 if (cgc->timeout <= 0)
457 cgc->timeout = ATAPI_WAIT_PC;
458
459 /* here we queue the commands from the uniform CD-ROM
460 layer. the packet must be complete, as we do not
461 touch it at all. */
Bartlomiej Zolnierkiewiczb3484872008-03-07 21:53:49 +0100462
Borislav Petkovf9afd182008-02-01 23:09:29 +0100463 if (cgc->sense)
464 memset(cgc->sense, 0, sizeof(struct request_sense));
Borislav Petkovf9afd182008-02-01 23:09:29 +0100465
466 if (cgc->quiet)
Christoph Hellwige8064022016-10-20 15:12:13 +0200467 flags |= RQF_QUIET;
Borislav Petkovf9afd182008-02-01 23:09:29 +0100468
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200469 cgc->stat = ide_cd_queue_pc(drive, cgc->cmd,
470 cgc->data_direction == CGC_DATA_WRITE,
471 cgc->buffer, &len,
472 cgc->sense, cgc->timeout, flags);
Borislav Petkovf9afd182008-02-01 23:09:29 +0100473 if (!cgc->stat)
FUJITA Tomonori5f828542008-07-15 21:21:42 +0200474 cgc->buflen -= len;
Borislav Petkovf9afd182008-02-01 23:09:29 +0100475 return cgc->stat;
476}