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