1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2014, Joyent, Inc. All rights reserved.
  25 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
  26 # Copyright 2013 Saso Kiselkov. All rights reserved.
  27 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
  28 # Copyright 2017 Nexenta Systems, Inc.
  29 # Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
  30 #
  31 
  32 include $(SRC)/uts/Makefile.uts
  33 
  34 FILEMODE=644
  35 
  36 #
  37 #       Note that the following headers are present in the kernel but
  38 #       neither installed or shipped as part of the product:
  39 #               cpuid_drv.h:            Private interface for cpuid consumers
  40 #               unix_bb_info.h:         Private interface to kcov
  41 #               nvme.h                  Private interface to nvme
  42 #
  43 
  44 i386_HDRS=                      \
  45         agp/agpamd64gart_io.h   \
  46         agp/agpdefs.h           \
  47         agp/agpgart_impl.h      \
  48         agp/agpmaster_io.h      \
  49         agp/agptarget_io.h      \
  50         agpgart.h               \
  51         asy.h                   \
  52         fd_debug.h              \
  53         fdc.h                   \
  54         fdmedia.h               \
  55         firmload.h              \
  56         gfx_private.h           \
  57         mouse.h                 \
  58         nvme.h                  \
  59         ucode.h
  60 
  61 sparc_HDRS=                     \
  62         mouse.h                 \
  63         scsi/targets/ssddef.h   \
  64         $(MDESCHDRS)
  65 
  66 # Generated headers
  67 GENHDRS=                        \
  68         priv_const.h            \
  69         priv_names.h            \
  70         usb/usbdevs.h
  71 
  72 CHKHDRS=                        \
  73         acpi_drv.h              \
  74         acct.h                  \
  75         acctctl.h               \
  76         acl.h                   \
  77         acl_impl.h              \
  78         aggr.h                  \
  79         aggr_impl.h             \
  80         aio.h                   \
  81         aio_impl.h              \
  82         aio_req.h               \
  83         aiocb.h                 \
  84         ascii.h                 \
  85         asynch.h                \
  86         atomic.h                \
  87         attr.h                  \
  88         audio.h                 \
  89         audioio.h               \
  90         autoconf.h              \
  91         auxv.h                  \
  92         auxv_386.h              \
  93         auxv_SPARC.h            \
  94         avl.h                   \
  95         avl_impl.h              \
  96         bitmap.h                \
  97         bitset.h                \
  98         bl.h                    \
  99         blkdev.h                \
 100         bofi.h                  \
 101         bofi_impl.h             \
 102         bpp_io.h                \
 103         bootstat.h              \
 104         brand.h                 \
 105         buf.h                   \
 106         bufmod.h                \
 107         bustypes.h              \
 108         byteorder.h             \
 109         callb.h                 \
 110         callo.h                 \
 111         cap_util.h              \
 112         cpucaps.h               \
 113         cpucaps_impl.h          \
 114         ccompile.h              \
 115         cdio.h                  \
 116         cladm.h                 \
 117         class.h                 \
 118         clconf.h                \
 119         clock_impl.h            \
 120         cmlb.h                  \
 121         cmn_err.h               \
 122         compress.h              \
 123         condvar.h               \
 124         condvar_impl.h          \
 125         conf.h                  \
 126         consdev.h               \
 127         console.h               \
 128         consplat.h              \
 129         vt.h                    \
 130         vtdaemon.h              \
 131         kd.h                    \
 132         containerof.h           \
 133         contract.h              \
 134         contract_impl.h         \
 135         copyops.h               \
 136         core.h                  \
 137         corectl.h               \
 138         cpc_impl.h              \
 139         cpc_pcbe.h              \
 140         cpr.h                   \
 141         cpupart.h               \
 142         cpuvar.h                \
 143         crc32.h                 \
 144         cred.h                  \
 145         cred_impl.h             \
 146         crtctl.h                \
 147         cryptmod.h              \
 148         csiioctl.h              \
 149         ctf.h                   \
 150         ctfs.h                  \
 151         ctfs_impl.h             \
 152         ctf_api.h               \
 153         ctype.h                 \
 154         cyclic.h                \
 155         cyclic_impl.h           \
 156         dacf.h                  \
 157         dacf_impl.h             \
 158         damap.h                 \
 159         damap_impl.h            \
 160         dc_ki.h                 \
 161         ddi.h                   \
 162         ddifm.h                 \
 163         ddifm_impl.h            \
 164         ddi_hp.h                \
 165         ddi_hp_impl.h           \
 166         ddi_intr.h              \
 167         ddi_intr_impl.h         \
 168         ddi_impldefs.h          \
 169         ddi_implfuncs.h         \
 170         ddi_obsolete.h          \
 171         ddi_periodic.h          \
 172         ddidevmap.h             \
 173         ddidmareq.h             \
 174         ddimapreq.h             \
 175         ddipropdefs.h           \
 176         dditypes.h              \
 177         debug.h                 \
 178         des.h                   \
 179         devctl.h                \
 180         devcache.h              \
 181         devcache_impl.h         \
 182         devfm.h                 \
 183         devid_cache.h           \
 184         devinfo_impl.h          \
 185         devops.h                \
 186         devpolicy.h             \
 187         devpoll.h               \
 188         dirent.h                \
 189         disp.h                  \
 190         dkbad.h                 \
 191         dkio.h                  \
 192         dkioc_free_util.h       \
 193         dklabel.h               \
 194         dl.h                    \
 195         dlpi.h                  \
 196         dld.h                   \
 197         dld_impl.h              \
 198         dld_ioc.h               \
 199         dls.h                   \
 200         dls_mgmt.h              \
 201         dls_impl.h              \
 202         dma_i8237A.h            \
 203         dnlc.h                  \
 204         door.h                  \
 205         door_data.h             \
 206         door_impl.h             \
 207         dtrace.h                \
 208         dtrace_impl.h           \
 209         dumpadm.h               \
 210         dumphdr.h               \
 211         ecppsys.h               \
 212         ecppio.h                \
 213         ecppreg.h               \
 214         ecppvar.h               \
 215         edonr.h                 \
 216         efi_partition.h         \
 217         elf.h                   \
 218         elf_386.h               \
 219         elf_SPARC.h             \
 220         elf_notes.h             \
 221         elf_amd64.h             \
 222         elftypes.h              \
 223         emul64.h                \
 224         emul64cmd.h             \
 225         emul64var.h             \
 226         epm.h                   \
 227         epoll.h                 \
 228         errno.h                 \
 229         errorq.h                \
 230         errorq_impl.h           \
 231         esunddi.h               \
 232         ethernet.h              \
 233         euc.h                   \
 234         eucioctl.h              \
 235         eventfd.h               \
 236         exacct.h                \
 237         exacct_catalog.h        \
 238         exacct_impl.h           \
 239         exec.h                  \
 240         exechdr.h               \
 241         extdirent.h             \
 242         fault.h                 \
 243         fasttrap.h              \
 244         fasttrap_impl.h         \
 245         fbio.h                  \
 246         fbuf.h                  \
 247         fcntl.h                 \
 248         fct.h                   \
 249         fct_defines.h           \
 250         fctio.h                 \
 251         fdbuffer.h              \
 252         fdio.h                  \
 253         feature_tests.h         \
 254         fem.h                   \
 255         file.h                  \
 256         filio.h                 \
 257         flock.h                 \
 258         flock_impl.h            \
 259         fork.h                  \
 260         fss.h                   \
 261         fsspriocntl.h           \
 262         fsid.h                  \
 263         fssnap.h                \
 264         fssnap_if.h             \
 265         fstyp.h                 \
 266         ftrace.h                \
 267         fx.h                    \
 268         fxpriocntl.h            \
 269         gfs.h                   \
 270         gld.h                   \
 271         gldpriv.h               \
 272         group.h                 \
 273         hdio.h                  \
 274         hook.h                  \
 275         hook_event.h            \
 276         hook_impl.h             \
 277         hwconf.h                \
 278         ia.h                    \
 279         iapriocntl.h            \
 280         ibpart.h                \
 281         id32.h                  \
 282         idmap.h                 \
 283         ieeefp.h                \
 284         id_space.h              \
 285         instance.h              \
 286         int_const.h             \
 287         int_fmtio.h             \
 288         int_limits.h            \
 289         int_types.h             \
 290         inttypes.h              \
 291         ioccom.h                \
 292         ioctl.h                 \
 293         ipc.h                   \
 294         ipc_impl.h              \
 295         ipc_rctl.h              \
 296         ipd.h                   \
 297         ipmi.h                  \
 298         isa_defs.h              \
 299         iscsi_authclient.h      \
 300         iscsi_authclientglue.h  \
 301         iscsi_protocol.h        \
 302         jioctl.h                \
 303         kbd.h                   \
 304         kbdreg.h                \
 305         kbio.h                  \
 306         kcpc.h                  \
 307         kdi.h                   \
 308         kdi_impl.h              \
 309         kiconv.h                \
 310         kiconv_big5_utf8.h      \
 311         kiconv_cck_common.h     \
 312         kiconv_cp950hkscs_utf8.h        \
 313         kiconv_emea1.h          \
 314         kiconv_emea2.h          \
 315         kiconv_euckr_utf8.h     \
 316         kiconv_euctw_utf8.h     \
 317         kiconv_gb18030_utf8.h   \
 318         kiconv_gb2312_utf8.h    \
 319         kiconv_hkscs_utf8.h     \
 320         kiconv_ja.h             \
 321         kiconv_ja_jis_to_unicode.h      \
 322         kiconv_ja_unicode_to_jis.h      \
 323         kiconv_ko.h             \
 324         kiconv_latin1.h         \
 325         kiconv_sc.h             \
 326         kiconv_tc.h             \
 327         kiconv_uhc_utf8.h       \
 328         kiconv_utf8_big5.h      \
 329         kiconv_utf8_cp950hkscs.h        \
 330         kiconv_utf8_euckr.h     \
 331         kiconv_utf8_euctw.h     \
 332         kiconv_utf8_gb18030.h   \
 333         kiconv_utf8_gb2312.h    \
 334         kiconv_utf8_hkscs.h     \
 335         kiconv_utf8_uhc.h       \
 336         kidmap.h                \
 337         klpd.h                  \
 338         klwp.h                  \
 339         kmdb.h                  \
 340         kmem.h                  \
 341         kmem_impl.h             \
 342         kobj.h                  \
 343         kobj_impl.h             \
 344         ksocket.h               \
 345         kstat.h                 \
 346         kstr.h                  \
 347         ksyms.h                 \
 348         ksynch.h                \
 349         ldterm.h                \
 350         lgrp.h                  \
 351         lgrp_user.h             \
 352         libc_kernel.h           \
 353         link.h                  \
 354         list.h                  \
 355         list_impl.h             \
 356         llc1.h                  \
 357         loadavg.h               \
 358         lock.h                  \
 359         lockfs.h                \
 360         lockstat.h              \
 361         lofi.h                  \
 362         lofi_impl.h             \
 363         log.h                   \
 364         logindmux.h             \
 365         logindmux_impl.h        \
 366         lwp.h                   \
 367         lwp_timer_impl.h        \
 368         lwp_upimutex_impl.h     \
 369         lpif.h                  \
 370         mac.h                   \
 371         mac_client.h            \
 372         mac_client_impl.h       \
 373         mac_ether.h             \
 374         mac_flow.h              \
 375         mac_flow_impl.h         \
 376         mac_impl.h              \
 377         mac_provider.h          \
 378         mac_soft_ring.h         \
 379         mac_stat.h              \
 380         machelf.h               \
 381         map.h                   \
 382         md4.h                   \
 383         md5.h                   \
 384         md5_consts.h            \
 385         mdi_impldefs.h          \
 386         mem.h                   \
 387         mem_config.h            \
 388         memlist.h               \
 389         mkdev.h                 \
 390         mhd.h                   \
 391         mii.h                   \
 392         miiregs.h               \
 393         mixer.h                 \
 394         mman.h                  \
 395         mmapobj.h               \
 396         mntent.h                \
 397         mntio.h                 \
 398         mnttab.h                \
 399         modctl.h                \
 400         mode.h                  \
 401         model.h                 \
 402         modhash.h               \
 403         modhash_impl.h          \
 404         mount.h                 \
 405         mouse.h                 \
 406         msacct.h                \
 407         msg.h                   \
 408         msg_impl.h              \
 409         msio.h                  \
 410         msreg.h                 \
 411         mtio.h                  \
 412         multidata.h             \
 413         multidata_impl.h        \
 414         mutex.h                 \
 415         nbmlock.h               \
 416         ndifm.h                 \
 417         ndi_impldefs.h          \
 418         net80211.h              \
 419         net80211_amrr.h         \
 420         net80211_crypto.h       \
 421         net80211_ht.h           \
 422         net80211_proto.h        \
 423         netconfig.h             \
 424         neti.h                  \
 425         netstack.h              \
 426         nexusdefs.h             \
 427         note.h                  \
 428         null.h                  \
 429         nvme.h                  \
 430         nvpair.h                \
 431         nvpair_impl.h           \
 432         objfs.h                 \
 433         objfs_impl.h            \
 434         ontrap.h                \
 435         open.h                  \
 436         openpromio.h            \
 437         panic.h                 \
 438         param.h                 \
 439         pathconf.h              \
 440         pathname.h              \
 441         pattr.h                 \
 442         queue.h                 \
 443         serializer.h            \
 444         pbio.h                  \
 445         pccard.h                \
 446         pci.h                   \
 447         pcie.h                  \
 448         pci_impl.h              \
 449         pci_tools.h             \
 450         pcmcia.h                \
 451         pctypes.h               \
 452         pfmod.h                 \
 453         pg.h                    \
 454         pghw.h                  \
 455         physmem.h               \
 456         pkp_hash.h              \
 457         pm.h                    \
 458         policy.h                \
 459         poll.h                  \
 460         poll_impl.h             \
 461         pool.h                  \
 462         pool_impl.h             \
 463         pool_pset.h             \
 464         port.h                  \
 465         port_impl.h             \
 466         port_kernel.h           \
 467         portif.h                \
 468         ppmio.h                 \
 469         pppt_ic_if.h            \
 470         pppt_ioctl.h            \
 471         priocntl.h              \
 472         priv.h                  \
 473         priv_impl.h             \
 474         prnio.h                 \
 475         proc.h                  \
 476         processor.h             \
 477         procfs.h                \
 478         procset.h               \
 479         project.h               \
 480         protosw.h               \
 481         prsystm.h               \
 482         pset.h                  \
 483         pshot.h                 \
 484         ptem.h                  \
 485         ptms.h                  \
 486         ptyvar.h                \
 487         raidioctl.h             \
 488         ramdisk.h               \
 489         random.h                \
 490         rctl.h                  \
 491         rctl_impl.h             \
 492         rds.h                   \
 493         reboot.h                \
 494         refstr.h                \
 495         refstr_impl.h           \
 496         resource.h              \
 497         rlioctl.h               \
 498         rt.h                    \
 499         rtpriocntl.h            \
 500         rwlock.h                \
 501         rwlock_impl.h           \
 502         rwstlock.h              \
 503         sad.h                   \
 504         schedctl.h              \
 505         sdt.h                   \
 506         secflags.h              \
 507         select.h                \
 508         sem.h                   \
 509         sem_impl.h              \
 510         sema_impl.h             \
 511         semaphore.h             \
 512         sendfile.h              \
 513         ser_sync.h              \
 514         session.h               \
 515         sha1.h                  \
 516         sha1_consts.h           \
 517         sha2.h                  \
 518         sha2_consts.h           \
 519         share.h                 \
 520         shm.h                   \
 521         shm_impl.h              \
 522         sid.h                   \
 523         siginfo.h               \
 524         signal.h                \
 525         signalfd.h              \
 526         skein.h                 \
 527         sleepq.h                \
 528         smbios.h                \
 529         smbios_impl.h           \
 530         sobject.h               \
 531         socket.h                \
 532         socket_impl.h           \
 533         socket_proto.h          \
 534         socketvar.h             \
 535         sockfilter.h            \
 536         sockio.h                \
 537         soundcard.h             \
 538         squeue.h                \
 539         squeue_impl.h           \
 540         srn.h                   \
 541         sservice.h              \
 542         stat.h                  \
 543         statfs.h                \
 544         statvfs.h               \
 545         stdbool.h               \
 546         stddef.h                \
 547         stdint.h                \
 548         stermio.h               \
 549         stmf.h                  \
 550         stmf_defines.h          \
 551         stmf_ioctl.h            \
 552         stmf_sbd_ioctl.h        \
 553         stream.h                \
 554         strft.h                 \
 555         strlog.h                \
 556         strmdep.h               \
 557         stropts.h               \
 558         strredir.h              \
 559         strstat.h               \
 560         strsubr.h               \
 561         strsun.h                \
 562         strtty.h                \
 563         sunddi.h                \
 564         sunldi.h                \
 565         sunldi_impl.h           \
 566         sunmdi.h                \
 567         sunndi.h                \
 568         sunos_dhcp_class.h      \
 569         sunpm.h                 \
 570         suntpi.h                \
 571         suntty.h                \
 572         swap.h                  \
 573         synch.h                 \
 574         sysdc.h                 \
 575         sysdc_impl.h            \
 576         syscall.h               \
 577         sysconf.h               \
 578         sysconfig.h             \
 579         sysevent.h              \
 580         sysevent_impl.h         \
 581         sysinfo.h               \
 582         syslog.h                \
 583         sysmacros.h             \
 584         sysmsg_impl.h           \
 585         systeminfo.h            \
 586         systm.h                 \
 587         task.h                  \
 588         taskq.h                 \
 589         taskq_impl.h            \
 590         t_kuser.h               \
 591         t_lock.h                \
 592         telioctl.h              \
 593         termio.h                \
 594         termios.h               \
 595         termiox.h               \
 596         thread.h                \
 597         ticlts.h                \
 598         ticots.h                \
 599         ticotsord.h             \
 600         tihdr.h                 \
 601         time.h                  \
 602         time_impl.h             \
 603         time_std_impl.h         \
 604         timeb.h                 \
 605         timer.h                 \
 606         timerfd.h               \
 607         times.h                 \
 608         timex.h                 \
 609         timod.h                 \
 610         tirdwr.h                \
 611         tiuser.h                \
 612         tl.h                    \
 613         tnf.h                   \
 614         tnf_com.h               \
 615         tnf_probe.h             \
 616         tnf_writer.h            \
 617         todio.h                 \
 618         tpicommon.h             \
 619         ts.h                    \
 620         tspriocntl.h            \
 621         ttcompat.h              \
 622         ttold.h                 \
 623         tty.h                   \
 624         ttychars.h              \
 625         ttydev.h                \
 626         tuneable.h              \
 627         turnstile.h             \
 628         types.h                 \
 629         types32.h               \
 630         tzfile.h                \
 631         u8_textprep.h           \
 632         u8_textprep_data.h      \
 633         uadmin.h                \
 634         ucred.h                 \
 635         uio.h                   \
 636         ulimit.h                \
 637         un.h                    \
 638         unistd.h                \
 639         user.h                  \
 640         ustat.h                 \
 641         utime.h                 \
 642         utsname.h               \
 643         utssys.h                \
 644         uuid.h                  \
 645         va_impl.h               \
 646         va_list.h               \
 647         var.h                   \
 648         varargs.h               \
 649         vfs.h                   \
 650         vfs_opreg.h             \
 651         vfstab.h                \
 652         vgareg.h                \
 653         videodev2.h             \
 654         visual_io.h             \
 655         vlan.h                  \
 656         vm.h                    \
 657         vm_usage.h              \
 658         vmem.h                  \
 659         vmem_impl.h             \
 660         vmsystm.h               \
 661         vnic.h                  \
 662         vnic_impl.h             \
 663         vnode.h                 \
 664         vscan.h                 \
 665         vtoc.h                  \
 666         vtrace.h                \
 667         vuid_event.h            \
 668         vuid_wheel.h            \
 669         vuid_queue.h            \
 670         vuid_state.h            \
 671         vuid_store.h            \
 672         wait.h                  \
 673         waitq.h                 \
 674         watchpoint.h            \
 675         winlockio.h             \
 676         zcons.h                 \
 677         zone.h                  \
 678         xti_inet.h              \
 679         xti_osi.h               \
 680         xti_xtiopt.h            \
 681         zmod.h
 682 
 683 HDRS=                           \
 684         $(GENHDRS)              \
 685         $(CHKHDRS)
 686 
 687 AUDIOHDRS=                      \
 688         ac97.h                  \
 689         audio_common.h          \
 690         audio_driver.h          \
 691         audio_oss.h             \
 692         g711.h
 693 
 694 AVHDRS=                         \
 695         iec61883.h
 696 
 697 BSCHDRS=                        \
 698         bscbus.h                \
 699         bscv_impl.h             \
 700         lom_ebuscodes.h         \
 701         lom_io.h                \
 702         lom_priv.h              \
 703         lombus.h
 704 
 705 MDESCHDRS=                      \
 706         mdesc.h                 \
 707         mdesc_impl.h
 708 
 709 CPUDRVHDRS=                     \
 710         cpudrv.h
 711 
 712 CRYPTOHDRS=                     \
 713         elfsign.h               \
 714         ioctl.h                 \
 715         ioctladmin.h            \
 716         common.h                \
 717         impl.h                  \
 718         spi.h                   \
 719         api.h                   \
 720         ops_impl.h              \
 721         sched_impl.h
 722 
 723 DCAMHDRS=                       \
 724         dcam1394_io.h
 725 
 726 IBHDRS=                 \
 727         ib_types.h      \
 728         ib_pkt_hdrs.h
 729 
 730 IBTLHDRS=               \
 731         ibtl_types.h    \
 732         ibtl_status.h   \
 733         ibti.h          \
 734         ibti_cm.h       \
 735         ibci.h          \
 736         ibti_common.h   \
 737         ibvti.h         \
 738         ibtl_ci_types.h
 739 
 740 IBTLIMPLHDRS=           \
 741         ibtl_util.h
 742 
 743 IBNEXHDRS=              \
 744         ibnex_devctl.h
 745 
 746 IBMFHDRS=               \
 747         ibmf.h          \
 748         ibmf_msg.h      \
 749         ibmf_saa.h      \
 750         ibmf_utils.h
 751 
 752 IBMGTHDRS=              \
 753         ib_dm_attr.h    \
 754         ib_mad.h        \
 755         sm_attr.h       \
 756         sa_recs.h
 757 
 758 IBDHDRS=                \
 759         ibd.h
 760 
 761 OFHDRS=                 \
 762         ofa_solaris.h   \
 763         ofed_kernel.h
 764 
 765 RDMAHDRS=               \
 766         ib_addr.h       \
 767         ib_user_mad.h   \
 768         ib_user_sa.h    \
 769         ib_user_verbs.h \
 770         ib_verbs.h      \
 771         rdma_cm.h       \
 772         rdma_user_cm.h
 773 
 774 SOL_UVERBSHDRS=         \
 775         sol_uverbs.h    \
 776         sol_uverbs2ucma.h       \
 777         sol_uverbs_comp.h       \
 778         sol_uverbs_hca.h        \
 779         sol_uverbs_qp.h         \
 780         sol_uverbs_event.h
 781 
 782 SOL_UMADHDRS=           \
 783         sol_umad.h
 784 
 785 SOL_UCMAHDRS=           \
 786         sol_ucma.h      \
 787         sol_rdma_user_cm.h
 788 
 789 SOL_OFSHDRS=            \
 790         sol_cma.h       \
 791         sol_ib_cma.h    \
 792         sol_ofs_common.h        \
 793         sol_kverb_impl.h
 794 
 795 TAVORHDRS=              \
 796         tavor_ioctl.h
 797 
 798 HERMONHDRS=             \
 799         hermon_ioctl.h
 800 
 801 MLNXHDRS=               \
 802         mlnx_umap.h
 803 
 804 IDMHDRS=                \
 805         idm.h           \
 806         idm_impl.h      \
 807         idm_so.h        \
 808         idm_text.h      \
 809         idm_transport.h \
 810         idm_conn_sm.h
 811 
 812 ISCSITHDRS=             \
 813         radius_packet.h         \
 814         radius_protocol.h       \
 815         chap.h                  \
 816         isns_protocol.h         \
 817         iscsi_if.h              \
 818         iscsit_common.h
 819 
 820 ISOHDRS=                        \
 821         signal_iso.h
 822 
 823 FMHDRS=                         \
 824         protocol.h              \
 825         util.h
 826 
 827 FMFSHDRS=                       \
 828         zfs.h
 829 
 830 FMIOHDRS=                       \
 831         ddi.h                   \
 832         disk.h                  \
 833         pci.h                   \
 834         scsi.h                  \
 835         sun4upci.h              \
 836         opl_mc_fm.h
 837 
 838 FSHDRS=                         \
 839         autofs.h                \
 840         decomp.h                \
 841         dv_node.h               \
 842         sdev_impl.h             \
 843         fifonode.h              \
 844         hsfs_isospec.h          \
 845         hsfs_node.h             \
 846         hsfs_rrip.h             \
 847         hsfs_spec.h             \
 848         hsfs_susp.h             \
 849         lofs_info.h             \
 850         lofs_node.h             \
 851         mntdata.h               \
 852         namenode.h              \
 853         pc_dir.h                \
 854         pc_fs.h                 \
 855         pc_label.h              \
 856         pc_node.h               \
 857         pxfs_ki.h               \
 858         snode.h                 \
 859         swapnode.h              \
 860         tmp.h                   \
 861         tmpnode.h               \
 862         udf_inode.h             \
 863         udf_volume.h            \
 864         ufs_acl.h               \
 865         ufs_bio.h               \
 866         ufs_filio.h             \
 867         ufs_fs.h                \
 868         ufs_fsdir.h             \
 869         ufs_inode.h             \
 870         ufs_lockfs.h            \
 871         ufs_log.h               \
 872         ufs_mount.h             \
 873         ufs_panic.h             \
 874         ufs_prot.h              \
 875         ufs_quota.h             \
 876         ufs_snap.h              \
 877         ufs_trans.h             \
 878         zfs.h                   \
 879         zut.h
 880 
 881 SCSIHDRS=               \
 882         scsi.h          \
 883         scsi_address.h  \
 884         scsi_ctl.h      \
 885         scsi_fm.h       \
 886         scsi_names.h    \
 887         scsi_params.h   \
 888         scsi_pkt.h      \
 889         scsi_resource.h \
 890         scsi_types.h    \
 891         scsi_watch.h
 892 
 893 SCSICONFHDRS=           \
 894         autoconf.h      \
 895         device.h
 896 
 897 SCSIGENHDRS=            \
 898         commands.h      \
 899         dad_mode.h      \
 900         inquiry.h       \
 901         message.h       \
 902         mode.h          \
 903         persist.h       \
 904         sense.h         \
 905         sff_frames.h    \
 906         smp_frames.h    \
 907         status.h
 908 
 909 SCSIIMPLHDRS=           \
 910         commands.h      \
 911         inquiry.h       \
 912         mode.h          \
 913         scsi_reset_notify.h \
 914         scsi_sas.h      \
 915         sense.h         \
 916         services.h      \
 917         smp_transport.h \
 918         spc3_types.h    \
 919         status.h        \
 920         transport.h     \
 921         types.h         \
 922         uscsi.h         \
 923         usmp.h
 924 
 925 SCSITARGETSHDRS=        \
 926         ses.h           \
 927         sesio.h         \
 928         sgendef.h       \
 929         stdef.h         \
 930         sddef.h         \
 931         smp.h
 932 
 933 SCSIADHDRS=
 934 
 935 SCSICADHDRS=
 936 
 937 SCSIISCSIHDRS=          \
 938         iscsi_door.h    \
 939         iscsi_if.h
 940 
 941 SCSIVHCIHDRS=           \
 942         scsi_vhci.h     \
 943         mpapi_impl.h    \
 944         mpapi_scsi_vhci.h
 945 
 946 SDCARDHDRS=             \
 947         sda.h           \
 948         sda_impl.h      \
 949         sda_ioctl.h
 950 
 951 FC4HDRS=                        \
 952         fc_transport.h  \
 953         linkapp.h       \
 954         fc.h            \
 955         fcp.h           \
 956         fcal_transport.h \
 957         fcal.h          \
 958         fcal_linkapp.h  \
 959         fcio.h
 960 
 961 FCHDRS=                 \
 962         fc.h            \
 963         fcio.h          \
 964         fc_types.h      \
 965         fc_appif.h
 966 
 967 FCIMPLHDRS=             \
 968         fc_error.h      \
 969         fcph.h
 970 
 971 FCULPHDRS=              \
 972         fcp_util.h      \
 973         fcsm.h
 974 
 975 SATAGENHDRS=            \
 976         sata_hba.h      \
 977         sata_defs.h     \
 978         sata_cfgadm.h
 979 
 980 SYSEVENTHDRS=           \
 981         ap_driver.h     \
 982         dev.h           \
 983         domain.h        \
 984         dr.h            \
 985         env.h           \
 986         eventdefs.h     \
 987         ipmp.h          \
 988         pwrctl.h        \
 989         vrrp.h
 990 
 991 CONTRACTHDRS=           \
 992         process.h       \
 993         process_impl.h  \
 994         device.h        \
 995         device_impl.h
 996 
 997 USBHDRS=        \
 998         usba.h  \
 999         usbai.h
1000 
1001 USBAUDHDRS=           \
1002         usb_audio.h
1003 
1004 USBHUBDHDRS=            \
1005         hub.h           \
1006         hubd_impl.h
1007 
1008 USBHIDHDRS=             \
1009         hid.h
1010 
1011 USBMSHDRS=              \
1012         usb_bulkonly.h  \
1013         usb_cbi.h
1014 
1015 USBPRNHDRS=           \
1016         usb_printer.h
1017 
1018 USBCDCHDRS=             \
1019         usb_cdc.h
1020 
1021 USBVIDHDRS=           \
1022         usbvc.h
1023 
1024 USBWCMHDRS=             \
1025         usbwcm.h
1026 
1027 UGENHDRS=           \
1028         usb_ugen.h
1029 
1030 HOTPLUGHDRS=    \
1031         hpcsvc.h        \
1032         hpctrl.h
1033 
1034 HOTPLUGPCIHDRS= \
1035         pcicfg.h        \
1036         pcihp.h
1037 
1038 RSMHDRS= \
1039         rsm.h   \
1040         rsm_common.h    \
1041         rsmapi_common.h \
1042         rsmpi.h \
1043         rsmpi_driver.h  \
1044         rsmka_path_int.h
1045 
1046 TSOLHDRS=               \
1047         label.h         \
1048         label_macro.h   \
1049         priv.h          \
1050         tndb.h          \
1051         tsyscall.h
1052 
1053 I1394HDRS=              \
1054         cmd1394.h       \
1055         id1394.h        \
1056         ieee1212.h      \
1057         ieee1394.h      \
1058         ixl1394.h       \
1059         s1394_impl.h    \
1060         t1394.h
1061 
1062 # "cmdk" headers used on sparc
1063 SDKTPHDRS=              \
1064         dadkio.h        \
1065         fdisk.h
1066 
1067 # "cmdk" headers used on i386
1068 DKTPHDRS=               \
1069         altsctr.h       \
1070         bbh.h           \
1071         cm.h            \
1072         cmdev.h         \
1073         cmdk.h          \
1074         cmpkt.h         \
1075         controller.h    \
1076         dadev.h         \
1077         dadk.h          \
1078         dadkio.h        \
1079         fctypes.h       \
1080         fdisk.h         \
1081         flowctrl.h      \
1082         gda.h           \
1083         quetypes.h      \
1084         queue.h         \
1085         tgcom.h         \
1086         tgdk.h
1087 
1088 # "pc" header files used on i386
1089 PCHDRS=                 \
1090         avintr.h        \
1091         dma_engine.h    \
1092         i8272A.h        \
1093         pcic_reg.h      \
1094         pcic_var.h      \
1095         pic.h           \
1096         pit.h           \
1097         rtc.h
1098 
1099 NXGEHDRS=                       \
1100         nxge.h                  \
1101         nxge_common.h           \
1102         nxge_common_impl.h      \
1103         nxge_defs.h             \
1104         nxge_hw.h               \
1105         nxge_impl.h             \
1106         nxge_ipp.h              \
1107         nxge_ipp_hw.h           \
1108         nxge_mac.h              \
1109         nxge_mac_hw.h           \
1110         nxge_fflp.h             \
1111         nxge_fflp_hw.h          \
1112         nxge_mii.h              \
1113         nxge_rxdma.h            \
1114         nxge_rxdma_hw.h         \
1115         nxge_txc.h              \
1116         nxge_txc_hw.h           \
1117         nxge_txdma.h            \
1118         nxge_txdma_hw.h         \
1119         nxge_virtual.h          \
1120         nxge_espc.h
1121 
1122 include Makefile.syshdrs
1123 
1124 dcam/%.check:   dcam/%.h
1125         $(DOT_H_CHECK)
1126 
1127 CHECKHDRS=                                              \
1128         $($(MACH)_HDRS:%.h=%.check)                     \
1129         $(AUDIOHDRS:%.h=audio/%.check)                  \
1130         $(AVHDRS:%.h=av/%.check)                        \
1131         $(BSCHDRS:%.h=%.check)                          \
1132         $(CHKHDRS:%.h=%.check)                          \
1133         $(CPUDRVHDRS:%.h=%.check)                       \
1134         $(CRYPTOHDRS:%.h=crypto/%.check)                \
1135         $(DCAMHDRS:%.h=dcam/%.check)                    \
1136         $(FC4HDRS:%.h=fc4/%.check)                      \
1137         $(FCHDRS:%.h=fibre-channel/%.check)             \
1138         $(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)    \
1139         $(FCULPHDRS:%.h=fibre-channel/ulp/%.check)      \
1140         $(IBHDRS:%.h=ib/%.check)                        \
1141         $(IBDHDRS:%.h=ib/clients/ibd/%.check)           \
1142         $(IBTLHDRS:%.h=ib/ibtl/%.check)                 \
1143         $(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)        \
1144         $(IBNEXHDRS:%.h=ib/ibnex/%.check)       \
1145         $(IBMGTHDRS:%.h=ib/mgt/%.check)                 \
1146         $(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)             \
1147         $(OFHDRS:%.h=ib/clients/of/%.check)                     \
1148         $(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)              \
1149         $(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)  \
1150         $(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)      \
1151         $(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)        \
1152         $(TAVORHDRS:%.h=ib/adapters/tavor/%.check)      \
1153         $(HERMONHDRS:%.h=ib/adapters/hermon/%.check)    \
1154         $(MLNXHDRS:%.h=ib/adapters/%.check)             \
1155         $(IDMHDRS:%.h=idm/%.check)                      \
1156         $(ISCSIHDRS:%.h=iscsi/%.check)                  \
1157         $(ISCSITHDRS:%.h=iscsit/%.check)                        \
1158         $(ISOHDRS:%.h=iso/%.check)                      \
1159         $(FMHDRS:%.h=fm/%.check)                        \
1160         $(FMFSHDRS:%.h=fm/fs/%.check)                   \
1161         $(FMIOHDRS:%.h=fm/io/%.check)                   \
1162         $(FSHDRS:%.h=fs/%.check)                        \
1163         $(SCSIHDRS:%.h=scsi/%.check)                    \
1164         $(SCSIADHDRS:%.h=scsi/adapters/%.check)         \
1165         $(SCSICONFHDRS:%.h=scsi/conf/%.check)           \
1166         $(SCSIIMPLHDRS:%.h=scsi/impl/%.check)           \
1167         $(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)      \
1168         $(SCSIGENHDRS:%.h=scsi/generic/%.check)         \
1169         $(SCSITARGETSHDRS:%.h=scsi/targets/%.check)     \
1170         $(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)       \
1171         $(SATAGENHDRS:%.h=sata/%.check)                 \
1172         $(SDCARDHDRS:%.h=sdcard/%.check)                \
1173         $(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1174         $(CONTRACTHDRS:%.h=contract/%.check)            \
1175         $(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1176         $(USBHUBDHDRS:%.h=usb/hubd/%.check)             \
1177         $(USBHIDHDRS:%.h=usb/clients/hid/%.check)       \
1178         $(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)       \
1179         $(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1180         $(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)    \
1181         $(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1182         $(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)   \
1183         $(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1184         $(USBHDRS:%.h=usb/%.check)                      \
1185         $(I1394HDRS:%.h=1394/%.check)                   \
1186         $(RSMHDRS:%.h=rsm/%.check)                      \
1187         $(TSOLHDRS:%.h=tsol/%.check)                    \
1188         $(NXGEHDRS:%.h=nxge/%.check)
1189 
1190 
1191 .KEEP_STATE:
1192 
1193 .PARALLEL:                      \
1194         $(CHECKHDRS)            \
1195         $(ROOTHDRS)             \
1196         $(ROOTAUDHDRS)          \
1197         $(ROOTAVHDRS)           \
1198         $(ROOTCRYPTOHDRS)       \
1199         $(ROOTDCAMHDRS)         \
1200         $(ROOTISOHDRS)          \
1201         $(ROOTIDMHDRS)          \
1202         $(ROOTISCSIHDRS)        \
1203         $(ROOTISCSITHDRS)       \
1204         $(ROOTFC4HDRS)          \
1205         $(ROOTFCHDRS)           \
1206         $(ROOTFCIMPLHDRS)       \
1207         $(ROOTFCULPHDRS)        \
1208         $(ROOTFMHDRS)           \
1209         $(ROOTFMIOHDRS)         \
1210         $(ROOTFMFSHDRS)         \
1211         $(ROOTFSHDRS)           \
1212         $(ROOTIBDHDRS)          \
1213         $(ROOTIBHDRS)           \
1214         $(ROOTIBTLHDRS)         \
1215         $(ROOTIBTLIMPLHDRS)     \
1216         $(ROOTIBNEXHDRS)        \
1217         $(ROOTIBMGTHDRS)        \
1218         $(ROOTIBMFHDRS)         \
1219         $(ROOTOFHDRS)           \
1220         $(ROOTRDMAHDRS)         \
1221         $(ROOTSOL_OFSHDRS)      \
1222         $(ROOTSOL_UMADHDRS)     \
1223         $(ROOTSOL_UVERBSHDRS)   \
1224         $(ROOTSOL_UCMAHDRS)     \
1225         $(ROOTTAVORHDRS)        \
1226         $(ROOTHERMONHDRS)       \
1227         $(ROOTMLNXHDRS)         \
1228         $(ROOTSCSIHDRS)         \
1229         $(ROOTSCSIADHDRS)       \
1230         $(ROOTSCSICONFHDRS)     \
1231         $(ROOTSCSIISCSIHDRS)    \
1232         $(ROOTSCSIGENHDRS)      \
1233         $(ROOTSCSIIMPLHDRS)     \
1234         $(ROOTSCSIVHCIHDRS)     \
1235         $(ROOTSDCARDHDRS)       \
1236         $(ROOTSYSEVENTHDRS)     \
1237         $(ROOTCONTRACTHDRS)     \
1238         $(ROOTUSBHDRS)          \
1239         $(ROOTUWBHDRS)          \
1240         $(ROOTUWBAHDRS)         \
1241         $(ROOTUSBAUDHDRS)       \
1242         $(ROOTUSBHUBDHDRS)      \
1243         $(ROOTUSBHIDHDRS)       \
1244         $(ROOTUSBHRCHDRS)       \
1245         $(ROOTUSBMSHDRS)        \
1246         $(ROOTUSBPRNHDRS)       \
1247         $(ROOTUSBCDCHDRS)       \
1248         $(ROOTUSBVIDHDRS)       \
1249         $(ROOTUSBWCMHDRS)       \
1250         $(ROOTUGENHDRS)         \
1251         $(ROOT1394HDRS)         \
1252         $(ROOTHOTPLUGHDRS)      \
1253         $(ROOTHOTPLUGPCIHDRS)   \
1254         $(ROOTRSMHDRS)          \
1255         $(ROOTTSOLHDRS)         \
1256         $($(MACH)_ROOTHDRS)
1257 
1258 
1259 install_h:                      \
1260         $(ROOTDIRS)             \
1261         .WAIT                   \
1262         $(ROOTHDRS)             \
1263         $(ROOTAUDHDRS)          \
1264         $(ROOTAVHDRS)           \
1265         $(ROOTCRYPTOHDRS)       \
1266         $(ROOTDCAMHDRS)         \
1267         $(ROOTISOHDRS)          \
1268         $(ROOTIDMHDRS)          \
1269         $(ROOTISCSIHDRS)        \
1270         $(ROOTISCSITHDRS)       \
1271         $(ROOTFC4HDRS)          \
1272         $(ROOTFCHDRS)           \
1273         $(ROOTFCIMPLHDRS)       \
1274         $(ROOTFCULPHDRS)        \
1275         $(ROOTFMHDRS)           \
1276         $(ROOTFMFSHDRS)         \
1277         $(ROOTFMIOHDRS)         \
1278         $(ROOTFSHDRS)           \
1279         $(ROOTIBDHDRS)          \
1280         $(ROOTIBHDRS)           \
1281         $(ROOTIBTLHDRS)         \
1282         $(ROOTIBTLIMPLHDRS)     \
1283         $(ROOTIBNEXHDRS)        \
1284         $(ROOTIBMGTHDRS)        \
1285         $(ROOTIBMFHDRS)         \
1286         $(ROOTOFHDRS)           \
1287         $(ROOTRDMAHDRS)         \
1288         $(ROOTSOL_OFSHDRS)      \
1289         $(ROOTSOL_UMADHDRS)     \
1290         $(ROOTSOL_UVERBSHDRS)   \
1291         $(ROOTSOL_UCMAHDRS)     \
1292         $(ROOTTAVORHDRS)        \
1293         $(ROOTHERMONHDRS)       \
1294         $(ROOTMLNXHDRS)         \
1295         $(ROOTSCSIHDRS)         \
1296         $(ROOTSCSIADHDRS)       \
1297         $(ROOTSCSIISCSIHDRS)    \
1298         $(ROOTSCSICONFHDRS)     \
1299         $(ROOTSCSIGENHDRS)      \
1300         $(ROOTSCSIIMPLHDRS)     \
1301         $(ROOTSCSIVHCIHDRS)     \
1302         $(ROOTSDCARDHDRS)       \
1303         $(ROOTSYSEVENTHDRS)     \
1304         $(ROOTCONTRACTHDRS)     \
1305         $(ROOTUWBHDRS)          \
1306         $(ROOTUWBAHDRS)         \
1307         $(ROOTUSBHDRS)          \
1308         $(ROOTUSBAUDHDRS)       \
1309         $(ROOTUSBHUBDHDRS)      \
1310         $(ROOTUSBHIDHDRS)       \
1311         $(ROOTUSBHRCHDRS)       \
1312         $(ROOTUSBMSHDRS)        \
1313         $(ROOTUSBPRNHDRS)       \
1314         $(ROOTUSBCDCHDRS)       \
1315         $(ROOTUSBVIDHDRS)       \
1316         $(ROOTUSBWCMHDRS)       \
1317         $(ROOTUGENHDRS)         \
1318         $(ROOT1394HDRS)         \
1319         $(ROOTHOTPLUGHDRS)      \
1320         $(ROOTHOTPLUGPCIHDRS)   \
1321         $(ROOTRSMHDRS)          \
1322         $(ROOTTSOLHDRS)         \
1323         $($(MACH)_ROOTHDRS)
1324 
1325 all_h: $(GENHDRS)
1326 
1327 priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1328         $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1329 
1330 priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1331         $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1332 
1333 usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1334         $(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1335 
1336 clean:
1337         $(RM) $(GENHDRS)
1338 
1339 clobber: clean
1340 
1341 check:  $(CHECKHDRS)
1342 
1343 FRC: